Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to create progress dialog programmatically in android

ProgressDialog progress = new ProgressDialog(this);
progress.setTitle("Loading");
progress.setMessage("Wait while loading...");
progress.setCancelable(false); // disable dismiss by tapping outside of the dialog
progress.show();
// To dismiss the dialog
progress.dismiss(); //do not include with above code
 
PREVIOUS NEXT
Tagged: #create #progress #dialog #programmatically #android
ADD COMMENT
Topic
Name
2+6 =