That’s what onPostExecute()
is for. It runs on the UI thread and you can deliver your result from there to the screen (or anywhere else you need). It won’t be called until the final result is available. If you want to deliver intermediate results, take a look at onProgressUpdate()
More Related Contents:
- Why is my app is crashing while using async task?
- Download a file with Android, and showing the progress in a ProgressDialog
- How to check internet access on Android? InetAddress never times out
- Inner class can access but not update values – AsyncTask
- How do I return a boolean from AsyncTask?
- The AsyncTask API is deprecated in Android 11. What are the alternatives?
- How to call javascript from Android?
- Android – Setting a Timeout for an AsyncTask?
- Pausing/stopping and starting/resuming Java TimerTask continuously?
- java.net.UnknownHostException: Unable to resolve host “”: No address associated with hostname and End of input at character 0 of
- How one interface can be used for different background android tasks?
- RxJava instead of AsyncTask?
- Return data from AsyncTask class
- Attempt to invoke virtual method ‘void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)’ on a null object reference
- Can I chain async task sequentially (starting one after the previous asynctask completes)
- AsyncTask.executeOnExecutor() before API Level 11
- Android: How to run asynctask from different class file?
- Using AsyncTask with passing a value
- How to use AsyncTask
- Asynctask: pass two or more values from doInBackground to onPostExecute
- How to handle return value from AsyncTask
- Writing to a file errors – Android Studio
- Display Animated GIF
- Error:Execution failed for task ‘:app:dexDebug’. com.android.ide.common.process.ProcessException
- ListView OnItemClickListener Not Responding?
- Android Room Database: How to handle Arraylist in an Entity?
- What does the return keyword do in a void method in Java?
- How to hide a View programmatically?
- Convert Uri to String and String to Uri
- Class must either be declared abstract or implement abstract method error