if i want to run a timer for a long time in android and show the user, when they go to a particular activity, for example, the duration since the timer started as a live number - how should I implement this? By live, i mean the time shown changes in real time as one would expect a timer to do. There will only need to be one instance of this timer, it'll pretty much be like android's stopwatch but implemented to function within a custom app.

Would I require wakelock?

should I create a service?

or should I just use a simple java timer?

any help/advice much appreciated.

thank you.

Related posts

Recent Viewed