Properly Using Asynctask Get()
I am running into a problem. I need to use asynctask to retrieve JSON data and I need that data before I moved to the next part of the program. However, when using the get() method
Solution 1:
When you are using get
, using Async Task doesn't make any sense. Because get()
will block the UI Thread, Thats why are facing 3 to 5 secs of blank screen as you have mentioned above.
Don't use get()
instead use AsyncTask with Call Back check this AsyncTask with callback interface
Post a Comment for "Properly Using Asynctask Get()"