Is there a standard \"Loading, please wait\" dialog I can use in Android development, when I invoke some AsyncTask (downloading some data from remote service for example)?
Mirko is basically correct, however there are two things to note:
ProgressDialog.show()
is a shortcut that automatically creates a dialog. Unlike other dialogs, it should NOT be used in onCreateDialog()
, as it will cause errors in Android 1.5.
There are some further issues with AsyncTask + ProgressDialog + screen orientation changes that you should be aware of - check this out.