Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android clock seconds hand

I'm new to android development and I was wondering whether it's possible to add a "seconds hand" to the default analog clock in android?

I already have a working clock with a dial, hour and minute hands. I've searched around and I came across some posts stating that you need a service running in the background to update the clock every second. This was for a clock widget though and mines is for an app.

Is there any way it can be done?

like image 861
user581949 Avatar asked Dec 05 '25 16:12

user581949


1 Answers

Here's how to do it: http://developer.android.com/resources/articles/timed-ui-updates.html

Warning: doing that will drain the battery really fast!

like image 146
Pedro Loureiro Avatar answered Dec 11 '25 12:12

Pedro Loureiro



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!