Code example for ProgressDialog

Methods: setTitlesetCancelableshowsetIndeterminatesetMessage

0
		protected void onPreExecute() { 
			// We're creating a progress dialog here because we want the user to wait. 
			// If in your app your user can just continue on with clicking other things, 
			// don't do the dialog thing. 
 
			dialog = new ProgressDialog(context);
			dialog.setTitle("Some title");
			dialog.setMessage("Doing something interesting ...");
			dialog.setIndeterminate(true);
			dialog.setCancelable(false);
			dialog.show();
		} 
 
		@Override 
		protected Void doInBackground(Void... params) {
			// Let's do some SU stuff 
			suAvailable = Shell.SU.available();
			if (suAvailable) {
				suVersion = Shell.SU.version(false);
				suVersionInternal = Shell.SU.version(true);
Connect your IDE to all the code out there  Get Codota for Java