I wonder which approach is better/cleaner: Should I pass Context on the constructor and have onPostExecute access the UI thread?
I have a ViewFlipper in which I want to add Views (Relative Layout with Children). I am trying to do this in an AsyncTask.
I am making a list of view in my application that shows all installed applications in the users device.It shows the name and the icon.The list view takes very long to load and the UI is unresponsive w
Is it possible that some calls publishProgress missed by onProgressUpdate? I mean is it possible there may be one transfer miss between doInBackground and onProgressUpdate callbacks with using publis开
Why do I get this NullPointerException? 08-08 11:07:15.669: ERROR/AndroidRuntime(659): Uncaught handler: thread main exiting due to uncaught exception
This problem has been bothering me for a bit and I cannot find a satisfactory solution. Many times (not always) in the creation of a specific object on the Android emulator I get NoClassDefFoundError
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing th
After an AsyncTask finishes, I usually do one of the following; Call a method on a callback object/interface that I define in the activity and passto My AsyncTask subclass constructor.
I have 3 AsyncTasks and 1 ProgressBar. I want when any of task executes, the progress bar is visible and when all of them finish, the progress bar is invisible.
I am calling a webservice through asynctask, to call the webservice i am calling one method named makeRequest() in doInBackground(), I am getting the response in another methods success(), In success