Top "Android-asynctask" questions

Use for questions on android.

Finish the calling activity when AsyncTask completes

My calling activity: public class Hello extends Activity { public void onCreate(Bundle savedInstanceState) { MyTask mt = new MyTask(this); mt.execute(); } …

android android-asynctask android-activity android-context
How to handle AsyncTask onPostExecute when paused to avoid IllegalStateException

I appreciate the numerous postings regarding AsyncTask on a rotation change. I have the following problem when using the compatability …

android android-asynctask android-fragments android-lifecycle
Should I use AsyncTask or IntentService for my application?

I have been reading around on internet connectivity with Android and noticed there are different ways to handle this i.…

android google-maps android-asynctask intentservice
How to execute background task when Android app is closed / set to background?

My Android 4+ app is connected to a custom web service that is used to sync data every few minutes. To …

android android-asynctask background-process android-lifecycle
Is it possible to use AsyncTask in a Service class?

Everything is in the title. On the official documentations it is stated that Note that services, like other application objects, …

android multithreading android-asynctask ui-thread
Android ICS and MJPEG using AsyncTask

I modified the MJPEG viewer code from Android and MJPEG to work using an AsyncTask (and thus work on Ice …

android android-asynctask mjpeg ip-camera
How to reset the ListView with the ArrayAdapter after fetching data

I am using an ListAdapter to populate a ListView like this: static final String[] PROBLEMS = new String[] {"one", "two", "three" }; /** …

android android-listview android-asynctask android-adapter
Android Retrofit - onProgressUpdate for showing Progress Notification

I'm currently using Retrofit by Square for Android network communications. Is there a way to get its progress during a …

android android-asynctask retrofit
Android Error: java.net.SocketException: Socket closed

I'm seeing this error come up in my crash logs hundreds of times a week but I have spent at …

java android android-asynctask android-studio androidhttpclient
Why to use Handlers while runOnUiThread does the same?

I have come across both Handlers and runOnUiThread concepts. But to me it still seems to be a doubt as …

android multithreading android-asynctask handler