通过Android中的socio Lib访问twitter的问题

时间:2011-08-15 05:30:54

标签: android twitter

在我的应用程序中,我应该使用socioLib并编写简单的代码来访问twitter:

TwitterConnector twitter = SocialNetworkHelper
            .createTwitterConnector(CONS_KEY, CONS_SEC, CALLBACK);
    try {
        twitter.requestAuthorization(this);
        twitter.authorize(this);
    } catch 

当我运行此代码时,我会发现错误:

oauth.signpost.exception.OAuthCommunicationException: Communication with the service provider failed: api.twitter.com

你能知道问题出在哪里吗?

1 个答案:

答案 0 :(得分:0)

您是否已为您的AndroidManifest.xml添加了互联网权限?

<uses-permission android:name="android.permission.INTERNET" />