Top "Android-asynctask" questions

Use for questions on android.

AsyncTask will always run even if app is destroyed?

I have an application and because you can't do network operations on the main thread I'm using AsyncTask, so the …

android android-asynctask android-lifecycle
Android speech recognizing and audio recording in the same time

My application records audio using MediaRecorder class in AsyncTask and also use Google API transform speech to text - Recognizer …

android android-asynctask speech-recognition
how to return data from AsyncTask to main thread

I want to return the Jsonobject to main thread. But when i tried to run the code it returns the …

android android-asynctask listactivity
What's the correct way to implement AsyncTask? static or non static nested class?

The "Login" from Android examples implemented AsyncTask as a non-static inner class. However, according to Commonsguys, this class should be …

java android asynchronous android-asynctask
How to communicate between Firebase Messaging Service and Activity? Android

I know the question about how to communicate between a service and an activity has been answered many times but …

android firebase android-asynctask static-methods android-service-binding
Picasso java.lang.IllegalStateException: Method call should not happen from the main thread

I am attempting to use Picasso to get three Bitmap images from a URL public void onCreate(Bundle savedInstanceState) { super.…

android android-asynctask imageview illegalstateexception picasso
Android HTML ImageGetter as AsyncTask

Okay, I'm losing my mind over this one. I have a method in my program which parses HTML. I want …

android html-parsing drawable android-asynctask
Android Media Player: Start called in state 4 error(-38,0)

This is the code am using to fetch a file name(.mp3) dynamically from some other class as am having …

android android-asynctask media-player android-assets
Garbage Collection causes : MediaPlayer finalized without being released

After a lot of debugging I finally found what is causing this error! Garbage Collection! I have a video playing …

android garbage-collection android-asynctask
ProgressDialog not shown when AsyncTask.get() called

Possible Duplicate: AsyncTask block UI threat and show progressbar with delay I want to show a progressDialog while retrieving JSON …

android android-asynctask progressdialog