Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mCountDownTimer=new CountDownTimer(7000,500) {
- @Override
- public void onTick(long millisUntilFinished) {
- Log.v("Log_tag", "Tick of Progress"+ i+ millisUntilFinished);
- i++;
- mProgressBar.setProgress(i);
- Bitmap bmps = mTextureView.getBitmap();
- ByteArrayOutputStream out = new ByteArrayOutputStream();
- bmps.compress(Bitmap.CompressFormat.JPEG , 0, out);
- rev.add(bmps);
- }
- @Override
- public void onFinish() {
- //Do what you want
- i++;
- mProgressBar.setProgress(i);
- mCountDownTimer.cancel();
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement