Android Question Pause Chronometer

westingenieria

Active Member
Licensed User
Longtime User
Help please !!! I'm working with clocks library, but i can't pause the chronometer. Anyone have an example?
 

Linostar

Member
Licensed User
Longtime User
Help please !!! I'm working with clocks library, but i can't pause the chronometer. Anyone have an example?

It is as simple as calling the "Stop" sub. For example:

B4X:
Dim chrono As Chronometer
chrono.Initialize("chrono")

'....

'Put this in the sub responsible to start the chronometer
chrono.Start

'.....

'Put this in the sub responsible to stop the chronometer
chrono.Stop

If that's not what you need, please be more explicit or post your code.
 
Upvote 0

westingenieria

Active Member
Licensed User
Longtime User

Thanks, but this code resets the Chronometer to zero, and i need to continue it
 
Upvote 0

westingenieria

Active Member
Licensed User
Longtime User
Sorry, but you should explain better: the example does both, reset and pause+continue.

It does not the coffee, but i think it is enough

sorry for my bad English. I am using your code, but to get back to 23:59:59 and 00:00:00 I need to continue to 24, 25, 26 ... hours. you understand me?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…