Top "Android-asynctask" questions

Use for questions on android.

Android: How can I pass parameters to AsyncTask's onPreExecute()?

I use an AsyncTask for loading operations that I implemented as an inner class. In onPreExecute() I show a loading …

android methods parameters android-asynctask
Android. Fragment getActivity() sometimes returns null

In developer console error reports sometimes I see reports with NPE issue. I do not understand what is wrong with …

android android-fragments android-activity android-asynctask nullpointerexception
Unable to resolve host "<insert URL here>" No address associated with hostname

I tried following this tutorial: Getting Data from the Web I tried implementing it on Android 3.0, the latest platform for …

android android-asynctask android-3.0-honeycomb urlconnection
Handler vs AsyncTask vs Thread

I got slightly confused about the differences between Handlers, AsyncTask and Threads in Android. I've read quite a few blogs …

android multithreading android-asynctask android-handler
android asynctask sending callbacks to ui

I have the following asynctask class which is not inside the activity. In the activity I'm initializing the asynctask, and …

android android-asynctask
Ideal way to cancel an executing AsyncTask

I am running remote audio-file-fetching and audio file playback operations in a background thread using AsyncTask. A Cancellable progress bar …

android android-asynctask
ProgressDialog in AsyncTask

I'm trying to display a custom progressdialog while loading RSS feed from an HTTP server, I made a hard search, …

android android-asynctask progressdialog
What arguments are passed into AsyncTask<arg1, arg2, arg3>?

I don't understand what I am supposed to put in here and where these arguments end up? What exactly should …

android arguments android-asynctask
How to stop asynctask thread in android?

I want to stop a AsyncTask thread from another AsyncTask thread. I have tried like new AsyncTask.cancel(true) to …

android android-asynctask