Unable to get twitter friends list through socialauth-android-2.1.jar -


i've downloaded , replaced socialauth-android-2.1.jar when click friends button, unable twitter friends list. throws error.

i got below error. 04-16 10:17:05.695: i/twitterimpl(14690): fetching contacts http://api.twitter.com/1/friends/ids.json?screen_name=sgm_friends&cursor=-1 04-16 10:17:05.700: d/socialauthadapter(14690): contact list not received 04-16 10:17:05.700: w/system.err(14690): org.brickred.socialauth.exception.socialauthexception: failed retrieve contacts http://api.twitter.com/1/friends/ids.json?screen_name=sgm_friends&cursor=-1 04-16 10:17:05.700: w/system.err(14690):    @ org.brickred.socialauth.provider.twitterimpl.getcontactlist(twitterimpl.java:287) 04-16 10:17:05.705: w/system.err(14690):    @ org.brickred.socialauth.android.socialauthadapter.getcontactlist(socialauthadapter.java:688) 04-16 10:17:05.705: w/system.err(14690):    @ org.brickred.customui.customui.events(customui.java:199) 04-16 10:17:05.705: w/system.err(14690):    @ org.brickred.customui.customui$responselistener$1.onclick(customui.java:137) 04-16 10:17:05.705: w/system.err(14690):    @ com.android.internal.app.alertcontroller$alertparams$3.onitemclick(alertcontroller.java:934) 04-16 10:17:05.705: w/system.err(14690):    @ android.widget.adapterview.performitemclick(adapterview.java:298) 04-16 10:17:05.705: w/system.err(14690):    @ android.widget.abslistview.performitemclick(abslistview.java:1283) 04-16 10:17:05.705: w/system.err(14690):    @ android.widget.abslistview$performclick.run(abslistview.java:3074) 04-16 10:17:05.705: w/system.err(14690):    @ android.widget.abslistview$1.run(abslistview.java:4147) 04-16 10:17:05.705: w/system.err(14690):    @ android.os.handler.handlecallback(handler.java:615) 04-16 10:17:05.705: w/system.err(14690):    @ android.os.handler.dispatchmessage(handler.java:92) 04-16 10:17:05.705: w/system.err(14690):    @ android.os.looper.loop(looper.java:137) 04-16 10:17:05.705: w/system.err(14690):    @ android.app.activitythread.main(activitythread.java:4898) 04-16 10:17:05.705: w/system.err(14690):    @ java.lang.reflect.method.invokenative(native method) 04-16 10:17:05.710: w/system.err(14690):    @ java.lang.reflect.method.invoke(method.java:511) 04-16 10:17:05.710: w/system.err(14690):    @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1008) 04-16 10:17:05.710: w/system.err(14690):    @ com.android.internal.os.zygoteinit.main(zygoteinit.java:775) 04-16 10:17:05.710: w/system.err(14690):    @ dalvik.system.nativestart.main(native method) 04-16 10:17:05.710: w/system.err(14690): caused by: org.brickred.socialauth.exception.socialauthexception: android.os.networkonmainthreadexception 04-16 10:17:05.710: w/system.err(14690):    @ org.brickred.socialauth.util.httputil.dohttprequest(httputil.java:154) 04-16 10:17:05.710: w/system.err(14690):    @ org.brickred.socialauth.util.oauthconsumer.send(oauthconsumer.java:406) 04-16 10:17:05.710: w/system.err(14690):    @ org.brickred.socialauth.util.oauthconsumer.httpget(oauthconsumer.java:280) 04-16 10:17:05.710: w/system.err(14690):    @ org.brickred.socialauth.oauthstrategy.oauth1.executefeed(oauth1.java:121) 04-16 10:17:05.710: w/system.err(14690):    @ org.brickred.socialauth.provider.twitterimpl.getcontactlist(twitterimpl.java:285) 04-16 10:17:05.710: w/system.err(14690):    ... 17 more 04-16 10:17:05.710: w/system.err(14690): caused by: android.os.networkonmainthreadexception 04-16 10:17:05.715: w/system.err(14690):    @ android.os.strictmode$androidblockguardpolicy.onnetwork(strictmode.java:1118) 04-16 10:17:05.715: w/system.err(14690):    @ java.net.inetaddress.lookuphostbyname(inetaddress.java:385) 04-16 10:17:05.715: w/system.err(14690):    @ java.net.inetaddress.getallbynameimpl(inetaddress.java:236) 04-16 10:17:05.715: w/system.err(14690):    @ java.net.inetaddress.getallbyname(inetaddress.java:214) 04-16 10:17:05.715: w/system.err(14690):    @ libcore.net.http.httpconnection.<init>(httpconnection.java:70) 04-16 10:17:05.715: w/system.err(14690):    @ libcore.net.http.httpconnection.<init>(httpconnection.java:50) 04-16 10:17:05.715: w/system.err(14690):    @ libcore.net.http.httpconnection$address.connect(httpconnection.java:340) 04-16 10:17:05.715: w/system.err(14690):    @ libcore.net.http.httpconnectionpool.get(httpconnectionpool.java:87) 04-16 10:17:05.715: w/system.err(14690):    @ libcore.net.http.httpconnection.connect(httpconnection.java:128) 04-16 10:17:05.715: w/system.err(14690):    @ libcore.net.http.httpengine.opensocketconnection(httpengine.java:315) 04-16 10:17:05.715: w/system.err(14690):    @ libcore.net.http.httpengine.connect(httpengine.java:310) 04-16 10:17:05.715: w/system.err(14690):    @ libcore.net.http.httpengine.sendsocketrequest(httpengine.java:289) 04-16 10:17:05.720: w/system.err(14690):    @ libcore.net.http.httpengine.sendrequest(httpengine.java:239) 04-16 10:17:05.720: w/system.err(14690):    @ libcore.net.http.httpurlconnectionimpl.connect(httpurlconnectionimpl.java:80) 04-16 10:17:05.720: w/system.err(14690):    @ org.brickred.socialauth.util.httputil.dohttprequest(httputil.java:152) 04-16 10:17:05.720: w/system.err(14690):    ... 21 more 

i've posted here before 5 days. no responce. https://code.google.com/p/socialauth-android/issues/detail?can=2&q=53&colspec=id%20type%20status%20priority%20milestone%20owner%20summary&id=53

social auth people answered question here https://code.google.com/p/socialauth-android/issues/detail?can=2&q=53&colspec=id%20type%20status%20priority%20milestone%20owner%20summary&id=53 .

they have changed async request. i've used older implementation,.now problem resolved.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -