Reputation: 5773
Previously i was working on how to connect an android application to twitter and posting a tweet but all the things that i have done is when twitter application is browsable. But now i want to do all the things when twitter application is client. Just give me an idea or something how could i do it.
On browsable app. all things are working fine for me but have no idea when application is client all the time getting 401 error, i know using callback url but it work only when application is browsable, i cant get the thing when application is client...any suggestions?
Using this OUT_OF_BAND i am able to get into the login page but cant able to get the authorization token for further use when i press the back key main activity comes but having no authorization token.
authUrl = provider.retrieveRequestToken(consumer, oauth.signpost.OAuth.OUT_OF_BAND);
Upvotes: 0
Views: 1323
Reputation: 4784
If I understand your question correctly you are talking about the following setting for your Twitter app:
Application Type: Client --- Browser
If you are developing an Android application you should use Browser (like you say you did before). It simply will not work with Client. Could you please explain why you are trying to change to Client?
Upvotes: 2
Reputation: 3380
Hope this will help you
Intent connectSocN/w = new Intent(Intent.ACTION_SEND);
connectSocN/w.setType("text/plain");
connectSocN/w.putExtra(android.content.Intent.EXTRA_SUBJECT,
"Subject of message");
connectSocN/w.putExtra(Intent.EXTRA_TEXT,"Message to send");
connectSocN/w(Intent.createChooser(connectSocN/w, "Share"));
By using this intent you can get all varieties of socil network that has been installed in your device.
Upvotes: 0