• Post Reply Bookmark Topic Watch Topic
  • New Topic

Android CircleProgressBar CountUp 0 to 2 seconds using CountDownTimer

 
Hasnain Ahmad
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an CircleProgressBar, i want to show the from 0 to 2 seconds, after 2 seconds i want to capture an image by calling the takePicture() method.
Here is my xml code.

Here is java code.

This code is not working correctly it fills and empty the CircleProgressBar twice time. But i want to show the progress only from 0 to 2 seconds once time.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!