android loading message

android

Solution

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.

Problem

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

Original source

Related problems