1

我的应用程序正在某些设备上运行,并在三星 Galaxy ace 上出现问题。并给出错误:oauth.signpost.exception.OAuthNotAuthorizedException:授权失败(服务器回复 401)。如果使用者密钥不正确或签名不匹配,则可能会发生这种情况。但是如果消费者密钥不正确,那么为什么它可以在其他设备上运行。不明白这个……

我已检查更改我的设备日期,但它不起作用。

 String url = "";
try {
url = provider.retrieveRequestToken(consumer,
OAUTH_CALLBACK_URL);
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url))
.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP
| Intent.FLAG_ACTIVITY_NO_HISTORY
| Intent.FLAG_FROM_BACKGROUND);
context.startActivity(intent);
} catch (Exception e) {
e.printStackTrace();
Log.e(Common.TAG, "Error during OAUth retrieve request token"+ e);
}
return url;
}

I am using following libs.
1. signpost-commonshttp4-1.2.1.1.jar
2. signpost-core-1.2.1.1.jar
3. signpost-jetty6-1.2.1.1.jar
4. twitter4j-core-2.1.11.jar
4

0 回答 0