Top "Android-asynctask" questions

Use for questions on android.

Updating progress dialog in Activity from AsyncTask

In my app I am doing some intense work in AsyncTask as suggested by Android tutorials and showing a ProgressDialog …

android android-asynctask progressdialog
Android calling AsyncTask right after an another finished

I have some problem with Android AsyncTask. There is an Activity which contains some TextView a button and a picture. …

android android-asynctask
HttpResponse using android issue: execute always causes exception?

I've been working on an Android project and I'm at a point where I want to ask some API for …

java android android-asynctask httpresponse
Android: How to update an UI from AsyncTask if AsyncTask is in a separate class?

I hate inner class. I've a main activity who launches a 'short-life' AsyncTask. AsyncTask is in a separate file, is …

android android-activity android-asynctask updates
Android AsyncTask [Can't create handler inside thread that has not called Looper.prepare()]

I've created an image upload AsyncTask based on a function. And after uploading, I get this error on onPostExecute(). I …

android android-asynctask android-handler android-looper
How to set up dependency injection using Dagger for things other than Activities and Fragments?

I started setting up dependency injection using Dagger as follows. Please feel encouraged to correct my implementation since I might …

android dependency-injection android-asynctask android-contentprovider dagger
AsyncTask threads never die

I'm using AsyncTasks to fetch data in response to the user pressing a button. This works well and keeps the …

android multithreading android-asynctask
Avoid reloading activity with asynctask on orientation change in android

How do I avoid reloading the activity with asynctask class in activity when the user changes orientation, in android? Can …

android android-asynctask screen-orientation
Is AsyncTask really conceptually flawed or am I just missing something?

I have investigated this problem for months now, came up with different solutions to it, which I am not happy …

android concurrency handler android-asynctask
OkHttp Library - NetworkOnMainThreadException on simple post

I want to use OkHttp library for networking in Android. I started with the simple post example as written in …

android android-asynctask okhttp networkonmainthread