A blog for technology, SEO tips, website development and open source programming.

Android ProgressDialog and AsyncTask

0 1,136

screenexample

The tutorial is an example of ProgressDialog with Async Task.

 

ProgressDialog is a dialog showing a progress indicator and an optional text message or view. Only a text message or a view can be used at the same time. The dialog can be made cancellable on back key press. The progress range is 0..10000. On the tutorial after the button is pressed the the progress dialog is triggered with async task for 10 seconds

AsyncTask enables proper and easy use of the UI thread. This class allows to perform background operations and publish results on the UI thread without having to manipulate threads and/or handlers.

The full source code can be downloaded from github

Leave a Reply

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More