ProgressDialog progressDialog = null;
     // ...
    progressDialog = ProgressDialog.show(this, "Please wait...", true);
      new Thread() {
        public void run() {
              try{
                  // Grab your data                                                
             } catch (Exception e) { }
 
            // When grabbing data is finish: Dismiss your Dialog 
            progressDialog.dismiss();
         }
   }.start();
 
 
No comments:
Post a Comment