httpOauthConsumer = new CommonsHttpOAuthConsumer(consumerKey, consumerSecret);
httpOauthprovider = new DefaultOAuthProvider("http://twitter.com/oauth/request_token",
"http://twitter.com/oauth/access_token",
"http://twitter.com/oauth/authorize");
String authUrl = httpOauthprovider.retrieveRequestToken(httpOauthConsumer, CALLBACKURL);
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(authUrl)));
Used this code for authenticating app with twitter.
I successfully got authenticated with twitter from my application. But, my doubt is once I uninstall the application and install again its forwarding to the auth url. Once Authorize app is clicked its forwarding back to my application. I was able to enter username, password only the first time. From next time onwards the twitter’s webpage for entering username, password itself is not coming.
Why is that so ?
Thanks in advance 🙂
just logout from Twitter to show login page.