Open GoogleCodeExporter opened 8 years ago
I was having the same problem on Ice Cream Sandwich.
Turns out, you can't access the network on the IU Thread anymore (by default
with the new StrictMode).
I put the code in AsyncTask and it's now working on my Galaxy Nexus ;)
Original comment by mathieu.mea
on 8 Jan 2012 at 9:28
I can confirm that the above solution works.
Original comment by grantlan...@gmail.com
on 14 Jan 2012 at 1:54
I was already doing this call in a thread (ASyncTask) and I still get the error
on the Asus Transformer Prime. Would appreciate someone looking in to this. As
a note this ONLY happens on Android 4.0
Original comment by m...@mobicartel.com
on 19 Feb 2012 at 5:10
I can confirm that using AsyncTask fixed the issue for me on all Android
devices running Android 4.0 and higher (including the Asus Transformer Prime).
Here is my source code if you want to check it out:
http://code.google.com/p/montrealtransit-for-android/source/browse/trunk/MonTran
sit/src/org/montrealtransit/android/TwitterUtils.java
Original comment by mathieu.mea
on 19 Feb 2012 at 5:49
First of all... THANK YOU, but i dont know how to make my code work...
http://pastebin.com/JfJ9a6q4
Could anyone help me? I am all new to Android... This is fir my final project
at University... after sweating a lot I made it work in android 2.33 but now in
4.2... i get this error.
Any good documentation or blog post about asyncTasks as well? I have no idea
about how to make them work... as you can see in the code (...)
The idea is, after clicking the button, it takes you to twitter authorization
area and it comes back once you finished...
Thank you in advance for your possible help
Original comment by miguel.s...@gmail.com
on 16 Apr 2013 at 2:39
Original issue reported on code.google.com by
geetaga...@gmail.com
on 20 Dec 2011 at 11:59