Code example for ProgressBar

Methods: getMaxgetProgressincrementProgressBysetProgress

0
String fps_str = String.format("%.2f", fps);
						tv3.setText("Frame " + frame + ", -------  FPS: " + fps_str);
						Log.v(TAG, "DURATION IS " + decinfo.duration_in_second);
//						tv3.setText("Frame " + frame); 
						if (progbar.getProgress() >= progbar.getMax())
							progbar.setProgress(0);
						progbar.incrementProgressBy(1);
 
						// if (false) 
						// { 
						// Canvas canvas = mSurfaceHolder1.lockCanvas();// ��ȡ���� 
						// Bitmap bitmap = Bitmap.createBitmap(canvas.getWidth() 
						// / 2, canvas.getHeight() / 2, Config.ALPHA_8); 
						// if (canvas == null) 
						// break; 
						// Paint mPaint = new Paint(); 
						// mPaint.setColor(Color.BLUE); 
						// canvas.drawRect(new RectF(0, 0, canvas.getWidth() / 
						// 2, canvas.getHeight() / 2), mPaint); 
						// mPaint.setColor(Color.RED);