Code example for ProgressDialog

Methods: getMaxsetMaxsetProgress

0
			pd.show();
		} 
 
		@Override 
		protected void onProgressUpdate(Integer... values) {
			if (pd.getMax() != values[0])
				pd.setMax(values[0]);
			pd.setProgress(values[1]);
		} 
 
		public void setParseResultHandler(ParseResultListener listener) {
			this.listener = listener;
		} 
 
		@Override 
		public void onFaceLoaded(int totalfaces, int currentFace) {
			publishProgress(totalfaces, currentFace);
			 
		} 
 
Experience pair programming with AI  Get Codota for Java