Top "Android-asynctask" questions

Use for questions on android.

Passing arguments to AsyncTask, and returning results

I have an application that does some long calculations, and I would like to show a progress dialog while this …

android return android-asynctask progressdialog
Example: Android bi-directional network socket using AsyncTask

Most of the network socket examples I found for Android were one directional only. I needed a solution for a …

android android-asynctask android-networking
Asynctask vs Thread in android

In UI, to perform some background work, I used a separate Thread. But as suggested by others, I am now …

android multithreading android-asynctask
How can you pass multiple primitive parameters to AsyncTask?

There are related questions, such as How can I pass in 2 parameters to a AsyncTask class? , but I ran into …

android android-asynctask primitive variadic-functions
Android wait AsyncTask to finish

I have a function, AppHelper.isOnline(Context context), I call in various parts of my application to check that a …

android multithreading android-asynctask
Skipped 60 frames! The application may be doing too much work on its main thread

I'm working on a App that should get a JSON response from a webservice and write every element in a …

android android-listview android-asynctask baseadapter
Execute AsyncTask several times

In my Activity I use a class which extends from AsyncTask and a parameter which is an instance of that …

android android-asynctask
Android - Cancel AsyncTask Forcefully

I have implemented AsyncTask in my one of activity: performBackgroundTask asyncTask = new performBackgroundTask(); asyncTask.execute(); Now, i need to implement …

android android-asynctask
AsyncTask: where does the return value of doInBackground() go?

When calling AsyncTask<Integer,Integer,Boolean>, where is the return value of: protected Boolean doInBackground(Integer... params)? Usually …

android return-value android-asynctask
Android : Loading an image from the Web with Asynctask

How do I replace the following lines of code with an Asynctask ? How do you "get back" the Bitmap from …

android android-asynctask