Giter VIP home page Giter VIP logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 13, 2024
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

from oauth-signpost.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 13, 2024
I can confirm that the above solution works.

Original comment by [email protected] on 14 Jan 2012 at 1:54

from oauth-signpost.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 13, 2024
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 [email protected] on 19 Feb 2012 at 5:10

from oauth-signpost.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 13, 2024
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

from oauth-signpost.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 13, 2024
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 [email protected] on 16 Apr 2013 at 2:39

from oauth-signpost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.