5

Possible Duplicate:
Download a file with Android, and showing the progress in a ProgressDialog
Android Activity Indicator?

i am really a novice in android I am doing an app connected with a webservice(xml) and it works good, but my app load the screen with the views incomplete and then shows the data. Iwould like to implement a " gettin ready" dialog when all the data has been downloaded and showed from the server.

Thanks for your help

2

1 Answer 1

6

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

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

progressDialog.dismiss(); // for close the dialog bar.
Sign up to request clarification or add additional context in comments.

2 Comments

great man.. do you know how to keep a progressDialog for 2 seconds?
@funkeeiads Let the thread sleep for 2000 ms

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.