无认证挑战foundRelevant讨论,可以在互联网上找到 [英] No authentication challenges foundRelevant discussions can be found on the Internet at
问题描述
我有一些典型的codeS其使用Twitter4J连接Twitter的API。他们的Android 1.x和2.x中工作得很好3.X 4.x的但在Android的4.1.1和4.1.2失败的Nexus 7设备!
来源:
I have some typical codes which used Twitter4J to connect Twitter API. They worked fine in android 1.x and 2.x. 3.x 4.x But failed in Android 4.1.1 and 4.1.2 with Nexus 7 device! Source:
private void retrieveRequestToken() {
mSpinner.show();
new Thread() {
@Override
public void run() {
try {
mRequestToken = mTwitter.getOAuthRequestToken(Twitter.CALLBACK_URI);
mUrl = mRequestToken.getAuthorizationURL();
mWebView.loadUrl(mUrl);
} catch (TwitterException e) {
mListener.onError(new DialogError(e.getMessage(), -1, Twitter.OAUTH_REQUEST_TOKEN));
}
}
}.start();
}
例外:
无认证挑战foundRelevant讨论可以在Internet上
Exception: No authentication challenges foundRelevant discussions can be found on the Internet at
问题hapens当我尝试得到OAuthToken - > mTwitter.getOAuthRequestToken(Twitter.CALLBACK_URI);
The problem hapens when i try to get on OAuthToken -> mTwitter.getOAuthRequestToken(Twitter.CALLBACK_URI);
会有人请帮助调查这个问题?
Would anybody please help to investigate this issue?
推荐答案
我foud问题只是把时间和日期在设备上正确!!!!转到手机设置,然后单击日期和时间,然后选择自动(请确保您的设备时区和时间,日期都是正确的)如果你的时间,日期和时区是不正确的,那么你无法与Twitter连接
I foud the problem just put the hour and date correct on device!!!! Go to Phone settings then click 'Date and Time' and select 'Automatic' (Please make sure your device Time Zone and Time,Date all are correct) If your time,Date and Time Zone are not correct then you can not connect with twitter.
这篇关于无认证挑战foundRelevant讨论,可以在互联网上找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!