我已经将twitter应用程序集成到我的应用程序中。这对我来说很好,但是当我打开twitter的网页然后回到我的应用程序时,Twitter网页没有关闭,谢谢...我是使用此链接但不理解 This link
protected void Login() {
ConfigurationBuilder configBuilder=new ConfigurationBuilder();
configBuilder.setOAuthConsumerKey(TWITCONSUMER_KEY);
configBuilder.setOAuthConsumerSecret(TWITTERSECRET_KEY);
Configuration config=configBuilder.build();
TwitterFactory twitterFactory=new TwitterFactory(config);
twitter=twitterFactory.getInstance();
try {
requestToken=twitter.getOAuthRequestToken(CallbackURL);
Log.i(TAG,"RequestTocenisntance:"+requestToken);
TwitterMainActivity.this.startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse(requestToken.getAuthenticationURL())));
} catch (TwitterException e) {
e.printStackTrace();
}
}