Friday, 11 September 2015

Progress show



final ProgressDialog pd= new ProgressDialog(this);
pd.setProgressStyle(ProgressDialog.STYLE_SPINNER);
// there are two type of styles available
pd.setIndeterminate(false);
pd.setCancelable(true);
 
and whenever and whereever we want to start and show the progress dialog box we do
pd.show(); 
for example in an onclick event

No comments:

Post a Comment