Code example for ProgressDialog

Methods: getWindow

0
		super.onProgressUpdate(values);
	} 
	 
	@Override 
	protected void onCancelled() { 
		progressDialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
		super.onCancelled(); 
	} 
	 
	@Override 
	protected void onPostExecute(B result) {
		progressDialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
		super.onPostExecute(result);
	} 
	 
	@Override 
	protected void onPreExecute() { 
		progressDialog.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
		super.onPreExecute(); 
	}