Advertisement
Guest User

Untitled

a guest
Aug 29th, 2014
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. mCountDownTimer=new CountDownTimer(7000,500) {
  2.  
  3. @Override
  4. public void onTick(long millisUntilFinished) {
  5. Log.v("Log_tag", "Tick of Progress"+ i+ millisUntilFinished);
  6. i++;
  7. mProgressBar.setProgress(i);
  8. Bitmap bmps = mTextureView.getBitmap();
  9. ByteArrayOutputStream out = new ByteArrayOutputStream();
  10. bmps.compress(Bitmap.CompressFormat.JPEG , 0, out);
  11. rev.add(bmps);
  12. }
  13.  
  14. @Override
  15. public void onFinish() {
  16. //Do what you want
  17. i++;
  18. mProgressBar.setProgress(i);
  19. mCountDownTimer.cancel();
  20.  
  21. }
  22. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement