In Android, Chronometer is a class that implements a simple timer. Chronometer is a subclass of TextView. This class helps us to add a timer in our app. You can give Timer start time in the elapsedRealTime() timebase and it start counting from that. If we don’t give base time then it will use the time at which time we call start() method. By default a chronometer displays the current timer value in the form of MM:SS or H:MM:SS.
Questions tagged [chronometer]
302 questions
1
vote
0 answers
Android Chornometer stopwatch tick at .25 speed
I am currently using a stopwatch timer in a sports app on Android Studio and have implemented it using a Chronometer. I'm wondering if its possible to make the Chronometer tick/increment at 0.25 speed?

OsamaSaleh289
- 41
- 1
1
vote
2 answers
Put delay in time while running the chronometer
I have an android app in which count up timer is included I used a chronometer for it.....
Now there is a scenario that after every 10 sec, 1 sec should change in chronometer I used handler.postdelyed() but in this, the chronometer starts running…

Umar Ghaffar
- 121
- 1
- 13
1
vote
1 answer
Showing the countup timer
I want to show the count up timer in my android app in yy-MM-dd h:m:s format
What I tried:
I tried manipulating the CountDownTimer so that it works in reverse order. Changing the interval to -1000 or adding 2000 milliseconds to the Countdown every…

Umar Ghaffar
- 121
- 1
- 13
1
vote
0 answers
Why is chronometer ignoring the format?
I have a Chronometer, which should have the format "hh:mm:ss". The current code give me a time like "0:12052:0-723107" for elapsed 12 seconds. Which is wrong in several ways. The division by 1000 seems not working and the seconds are displayed in…

Spinshot
- 275
- 2
- 12
1
vote
0 answers
How to get chronometer elapsed time and continue running in another activity
I have a chronometer in my MainActivity and I wanted to save the elapsed time and pass it to SecondActivity and show the elapsed time and continue running it in second activity using shared preferences but I failed to do so.
I tried using textView…

Anonymous
- 74
- 2
- 10
1
vote
1 answer
How to save chronometer time and retrieve it in another activity using sharedpreferences
I have a chronometer in Mainactivity.java I wanted to save the starting time using SharedPreferences and get the starting time show it in another activity but I can't figure out how to do so .I've tried Service which allows it running in the…

Anonymous
- 74
- 2
- 10
1
vote
1 answer
How to store paused chronometer time and display it another view
I have set my chronometer to start when needed, pause when required and reset when a condition is met. Great, but not quite perfect. I want to be able to store the time the chronometer shows, say "01.12", when a condition is met and then display…

Sean O
- 238
- 3
- 14
1
vote
1 answer
Chronometer Crashes on Reset from setOnChronometerTickListener()
I'm trying to reset the the chronometer using setOnChronometerTickListener() when the chronometer reaches a certain time (in this case 5s). However it crashes when I run it on my phone. I'm using the solution to this quesion to reset the…

Stealing
- 187
- 1
- 12
1
vote
1 answer
How to make a count up timer from a specific date?
In my app user pick a date and time from a date and time picker (from the past dates) then I want to start a count up timer from that date and I need to run it in a service so that if my app killed, timer wouldn't stop.
I've tried Chronometer and…

Parisa Baastani
- 1,713
- 14
- 31
1
vote
1 answer
Chronometer save time on fragment change
So my app has 1 activity and 4 fragments and one of them has Chronometer to show how much time is passed.
It works fine, but I have one issue that the chronometer keeps going back to 00:00 every time I move to another fragment and come back.
I know…

Auclown
- 179
- 1
- 3
- 20
1
vote
1 answer
How to pause a chronometer when the phonescreens is locked
I tried to develop an app that can record how long a people spend on their cellphone. It suppose to start a chronometer once I open the app, and pause while the screen is locked. The problem is I can stop it with a pause button but I cannot do it…

tonymimi
- 11
- 3
1
vote
1 answer
Using the time from chronometer widget to calculate amount given a rate
I am using the Chronometer widget to get time elapsed. It has a ticklistener to perform an action when the time changes. I need to calculate an amount using rate*time while the time is running but I do not know how to get the exact seconds elapsed…

Sweetie Anang
- 332
- 1
- 3
- 15
1
vote
3 answers
Android Screen Orientation Problem
Hi i have a problem like, I have a chronometer its shows recording time if i press a record button of a live video streaming, both are dynamic. Once i clicked the record the recording will takes place in server side, so no problem about that but the…

Droidand
- 176
- 1
- 4
- 10
1
vote
2 answers
Stop a chronometer if a method returns true
Is there any way that the chronometer can be paused if a method is true. I have created a simple jigsaw puzzle and added a chronometer to show the time elapse and I'm trying to stop the timer when the puzzle is Solved.On running, the application…

Im new at this
- 39
- 5
1
vote
2 answers
My action are not working even if I used service in android
I doing project on android services ,In my project I'm using a button to start chronometer,I need to stay the chronometer if i closed the app can you guys help me?
my code for Main Activity.java is
public void onClick(View v) {
…

Sukesh
- 184
- 2
- 17