Code example for ProgressDialog

Methods: setIndeterminatesetMessage, setCancelable

0
		this(activity, R.string.loading);
	} 
 
	protected ProgressTask(Activity activity, int message) {
		super(activity);
		this.dialog = new ProgressDialog(activity);
		this.dialog.setCancelable(false);
		this.dialog.setIndeterminate(true);
		this.dialog.setMessage(activity.getString(message));
	} 
	 
	public void register(ProgressCallback callback) {
		this.callback = callback;
	} 
 
	@Override 
	protected void onPreExecute() { 
		super.onPreExecute(); 
		dialog.show();
	}