Code example for ProgressDialog

Methods: setTitlesetIndeterminatesetMessage, setCancelable, show

		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 ...");
		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);
				suResult = String[] {