3

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

Community
  • 1
  • 1
funkeeiads
  • 127
  • 4
  • 12
  • use AsyncTask for showing progress bar and first downloading data from server then so it without freezing UI and rendering of incomplete views – ρяσѕρєя K Dec 08 '12 at 21:49
  • 1
    See these: http://stackoverflow.com/questions/5025652/android-activity-indicator, http://stackoverflow.com/questions/10085227/android-show-progress-indicator-of-parse-while-downloading-a-xml and http://stackoverflow.com/questions/6302479/android-activity-indicator. – Frank van Puffelen Dec 08 '12 at 21:54

1 Answers1

5

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.
Muhammad Saifuddin
  • 1,197
  • 10
  • 26