尝试以下教程
http://www.androidsdkforum.com/android-sdk-development/3-oauth-twitter.html
我不太理解回调URL的含义。我的Twitter应用程序名称是"faisal-android",我在代码中定义的回调URL是:
myapp://wozzon-android
并在XML文件中进行了设置。
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="myapp" android:host="faisal-android" />
</intent-filter>
我的定义回调URL的方式正确吗?
当我运行代码时,它会给我一个错误信息:“授权失败(服务器以401回复)。如果消费者密钥不正确或签名不匹配,则可能会发生这种情况。”
我的Twitter应用程序帐户设置如下: alt text http://www.freeimagehosting.net/uploads/a0c2689c73.png