Hi
I have an app with multiple games, each with a button the main activity/page. One requires a timer, so that when this games button (eg. btn_MyGame) is pressed it starts that game's activity and the timer is started.
I'm wondering how to start the timer when btn_MyGame is pressed and show the time elapsed on a label within the MyGame activity.
So after 3 mins of playing MyGame the label would read: Session Time 0h 3m
I know very little about timers (obviously).
Any help appreciated.
Many Thanks.
P.
I have an app with multiple games, each with a button the main activity/page. One requires a timer, so that when this games button (eg. btn_MyGame) is pressed it starts that game's activity and the timer is started.
I'm wondering how to start the timer when btn_MyGame is pressed and show the time elapsed on a label within the MyGame activity.
So after 3 mins of playing MyGame the label would read: Session Time 0h 3m
I know very little about timers (obviously).
Any help appreciated.
Many Thanks.
P.