如何从我的雅虎帐户获得雅虎联系人

时间:2014-01-27 06:46:48

标签: android oauth yahoo yahoo-api import-contacts

我尝试使用我的应用程序实现yahoo集成,让我说说我的要求。我需要实现一个功能,比如分享我的应用程序,谁已经在我的雅虎联系人。为此,我试图将yahoo API与我的应用程序集成 我已按照问题here

所述的答案

所以当我运行这个应用程序时,我得到了如下所示的例外情况,请帮助我吗?

    01-27 06:44:31.146: W/System.err(3505): oauth.signpost.exception.OAuthCommunicationException: Communication with the service provider failed: null
01-27 06:44:31.155: W/System.err(3505):     at oauth.signpost.AbstractOAuthProvider.retrieveToken(AbstractOAuthProvider.java:218)
01-27 06:44:31.166: W/System.err(3505):     at oauth.signpost.AbstractOAuthProvider.retrieveRequestToken(AbstractOAuthProvider.java:74)
01-27 06:44:31.166: W/System.err(3505):     at com.ileaf.yahoo.MainActivity.callOAuth(MainActivity.java:52)
01-27 06:44:31.166: W/System.err(3505):     at com.ileaf.yahoo.MainActivity.onCreate(MainActivity.java:35)
01-27 06:44:31.175: W/System.err(3505):     at android.app.Activity.performCreate(Activity.java:5104)
01-27 06:44:31.175: W/System.err(3505):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
01-27 06:44:31.185: W/System.err(3505):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
01-27 06:44:31.185: W/System.err(3505):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
01-27 06:44:31.185: W/System.err(3505):     at android.app.ActivityThread.access$600(ActivityThread.java:141)
01-27 06:44:31.195: W/System.err(3505):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
01-27 06:44:31.195: W/System.err(3505):     at android.os.Handler.dispatchMessage(Handler.java:99)
01-27 06:44:31.205: W/System.err(3505):     at android.os.Looper.loop(Looper.java:137)
01-27 06:44:31.205: W/System.err(3505):     at android.app.ActivityThread.main(ActivityThread.java:5041)
01-27 06:44:31.205: W/System.err(3505):     at java.lang.reflect.Method.invokeNative(Native Method)
01-27 06:44:31.215: W/System.err(3505):     at java.lang.reflect.Method.invoke(Method.java:511)
01-27 06:44:31.215: W/System.err(3505):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
01-27 06:44:31.225: W/System.err(3505):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
01-27 06:44:31.225: W/System.err(3505):     at dalvik.system.NativeStart.main(Native Method)
01-27 06:44:31.225: W/System.err(3505): Caused by: android.os.NetworkOnMainThreadException
01-27 06:44:31.235: W/System.err(3505):     at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1117)
01-27 06:44:31.246: W/System.err(3505):     at java.net.InetAddress.lookupHostByName(InetAddress.java:385)
01-27 06:44:31.246: W/System.err(3505):     at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
01-27 06:44:31.246: W/System.err(3505):     at java.net.InetAddress.getAllByName(InetAddress.java:214)
01-27 06:44:31.255: W/System.err(3505):     at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:137)
01-27 06:44:31.255: W/System.err(3505):     at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
01-27 06:44:31.265: W/System.err(3505):     at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
01-27 06:44:31.265: W/System.err(3505):     at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:360)
01-27 06:44:31.275: W/System.err(3505):     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
01-27 06:44:31.275: W/System.err(3505):     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
01-27 06:44:31.275: W/System.err(3505):     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
01-27 06:44:31.285: W/System.err(3505):     at oauth.signpost.commonshttp.CommonsHttpOAuthProvider.sendRequest(CommonsHttpOAuthProvider.java:64)
01-27 06:44:31.285: W/System.err(3505):     at oauth.signpost.AbstractOAuthProvider.retrieveToken(AbstractOAuthProvider.java:181)
01-27 06:44:31.285: W/System.err(3505):     ... 17 more

0 个答案:

没有答案