How to create loading dialogs in Android?

Eno picture Eno · Mar 26, 2010 · Viewed 123.2k times · Source

Those dark spinning progress dialogs in the Amazon and Engadget apps - are those standard in Android?

Answer

synic picture synic · Mar 26, 2010

It's a ProgressDialog, with setIndeterminate(true).

From http://developer.android.com/guide/topics/ui/dialogs.html#ProgressDialog

ProgressDialog dialog = ProgressDialog.show(MyActivity.this, "", 
                    "Loading. Please wait...", true);

An indeterminate progress bar doesn't actually show a bar, it shows a spinning activity circle thing. I'm sure you know what I mean :)