..
Android Smart Visitor

ProgressDialog

July 17, 2011 | By Andro ID

android.app.ProgressDialog is a dialog showing a progress indicator and an optional text message or view.

ProgressDialog

call the show() method to start the ProgressDialog, and call dismiss() method to remove it from the screen (refer to the next article ProgressDialog + Thread).

package com.exercise.AndroidProgressDialog;

import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;

public class AndroidProgressDialogActivity extends Activity {

ProgressDialog progressDialog;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

progressDialog = ProgressDialog.show(AndroidProgressDialogActivity.this,
"ProgressDialog", "Wait!");
/*
* To stop the ProgressDialog, call progressDialog.dismiss();
*/
}
}


next:
- ProgressDialog + Thread

addtomyyahoo4 Subscribe in NewsGator Online Add to My AOL
Subscribe with Bloglines Add to netvibes Add to Google