Lines Matching full:asynctask
301 thread. Perhaps the best solution, though, is to extend the {@link android.os.AsyncTask} class,
305 <h4 id="AsyncTask">Using AsyncTask</h4>
307 <p>{@link android.os.AsyncTask} allows you to perform asynchronous work on your user
311 <p>To use it, you must subclass {@link android.os.AsyncTask
312 android.os.AsyncTask#doInBackground doInBackground()} callback method, which runs in a pool of
314 android.os.AsyncTask#onPostExecute onPostExecute()}, which delivers the result from {@link
315 android.os.AsyncTask#doInBackground doInBackground()} and runs in the UI thread, so you can safely
316 update your UI. You can then run the task by calling {@link android.os.AsyncTask#execute execute()}
319 <p>For example, you can implement the previous example using {@link android.os.AsyncTask} this
327 private class DownloadImageTask extends AsyncTask<String, Void, Bitmap> {
329 * delivers it the parameters given to AsyncTask.execute() */
345 <p>You should read the {@link android.os.AsyncTask} reference for a full understanding on
351 <li>The method {@link android.os.AsyncTask#doInBackground doInBackground()} executes automatically
353 <li>{@link android.os.AsyncTask#onPreExecute onPreExecute()}, {@link
354 android.os.AsyncTask#onPostExecute onPostExecute()}, and {@link
355 android.os.AsyncTask#onProgressUpdate onProgressUpdate()} are all invoked on the UI thread</li>
356 <li>The value returned by {@link android.os.AsyncTask#doInBackground doInBackground()} is sent to
357 {@link android.os.AsyncTask#onPostExecute onPostExecute()}</li>
358 <li>You can call {@link android.os.AsyncTask#publishProgress publishProgress()} at anytime in {@link
359 android.os.AsyncTask#doInBackground doInBackground()} to execute {@link
360 android.os.AsyncTask#onProgressUpdate onProgressUpdate()} on the UI thread</li>