Code example for ProgressBar

Methods: getMaxsetProgress

0
						int x = Math.round((currentMediaPosition / (float) mediaDuration) * 100f); 
						playProgressBar.setProgress(x); 
					} 
					playProgressHandler.postDelayed(this, updateDelay); 
				} else { 
					playProgressBar.setProgress(playProgressBar.getMax()); 
					handleMediaPlayerStop(); 
				} 
			} 
		}; 
 
		@Override 
		public void onClick(View view) {
			isPlaying = !isPlaying;
 
			if (isPlaying) {
				File file = new File(note.recordingPath);
				if (file.exists()) {
					handleMediaPlayerStart(file);
				} 
			} else {