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
0
votes
1 answer
Custom chronometer and time difference
I'm new to C# and I'm trying to make a custom chronometer that is composed of two labels (label1 and label2) that display time strings (time and time0/time1) and one button (pause/play) that changes its text from pause to play and viceversa on each…

Luke
- 503
- 2
- 7
- 17
0
votes
0 answers
Android chronometer counting in characters instead of numbers
I have a chronometer which I set in the following way:
long realTime = SystemClock.elapsedRealtime();
long time = alert.Created.getTime();
holder.timeChronometer.setBase(realTime - time);
holder.timeChronometer.start();
//alert.Created is a Date…

Octavius
- 11
- 2
0
votes
0 answers
Chronometer app for android
I'm a begginer in android programming and trying to improve my knowledge. I want to make an app that is a regressive chronometer, like this: I insert the seconds I want in a text view named "seconds", then press a button and the app counts down the…

Vladimir
- 77
- 2
- 11
0
votes
2 answers
Save chronometer value/time?
How can I save my chronometer value? So when I, for example, press the back button or when i "kill" the application, I don't want the timer to reset to 00:00.
The code is a a button that you hold and release. When I hold the button, a timer starts,…

Leitvoll
- 53
- 4
0
votes
1 answer
How to pause and resume Chronometer in Notification Panel?
I have a chronometer in notification panel which I instantiate using
remoteView.setChronometer(R.id.notification_timer, SystemClock.elapsedRealtime(),
null, true);
How should I pause the timer and resume it when I call…

Jaswanth Kumar
- 3,531
- 3
- 23
- 26
0
votes
2 answers
How to keep a Chronometer running in the background?
I have in a Activity (1) A Chronometer and is running fine. I click a Button and starts Chronometer time count.
I'm trying to keep the score Chronometer changing Activity (2) but without success.
In this new Activity (2) does not have the layout…

Victor CS
- 71
- 3
- 17
0
votes
1 answer
Android Chronotmeter onChronometerTick stackoverflowerror?
I am writting a code in Android to develop a Chronometer app. But i am facing some of the error while i am trying to reset the Chronometer on certain time.
MyCode:
mChronometer.setBase(SystemClock.elapsedRealtime() - 86396000);
…

user3950841
- 9
- 5
0
votes
1 answer
Is there any equivalent of Chronometer setBase() method in c#?
I am developing app using xamarin in c#. Converting java code I notice that my chronometer doesn't have setBase() method. Is there any equivalent of this method in c#?

user3897367
- 261
- 1
- 3
- 11
0
votes
0 answers
Chronometer view: get value in real time and keep it running after destroy
Is there a way to get the real timer of a Chronometer View into a notification ?
I have created a chronometer with this view : http://developer.android.com/reference/android/widget/Chronometer.html
I also have a notification with…

psv
- 3,147
- 5
- 32
- 67
0
votes
1 answer
Showing Hours in Chronometer
How do you show hours in chronometer.By default its format is (hh:mm:ss), doesn't show in the view.I need it to show like 00:00:00 , and update the time.
I also require to pause the time and resume the time.

Tiji Isen
- 31
- 7
0
votes
1 answer
Android Chronometer: time format issue
Why my chronometer wouldn't stop after I've told it to?
I have found out that it seems to be isolated to the tablet I have tested it on (7 inch Galaxy Tab). I have no idea why it would work on my phone yet not work on the tablet. The Chronometer is…

Darren Murtagh
- 591
- 2
- 6
- 28
0
votes
1 answer
Increment ProgressBar on Chronometer "Tick"
I have a Chronometer which increments every second and displays elapsed time on screen.
I also have three Progress Bars:
SecondsProgressBar
MinutesProgressBar
HoursProgressBar
When the Chronometer increments every second I'd like to fill the…

Idob
- 1,620
- 4
- 16
- 27
0
votes
1 answer
check if chronometer is running ANDROID
I am working on a simple Chronometer app and I was wondering how to check if a chronometer is running. For example I have the below method to start the Chronometer but if pressed I want it to check to see if it is already running and if it is to…

steelthunder
- 438
- 2
- 12
- 27
0
votes
1 answer
Storing Chronometer in SharedPreferences
I have a Chronometer app that I want to maintain its time when the device is rebooted. For example if its at 10 minutes on reboot I want it to continue from 10 minutes when the device reboots.
I am attempting to save the value of the Chronometer in…

steelthunder
- 438
- 2
- 12
- 27
0
votes
1 answer
Two Chronometer view in a single Activity
When I try to add two chronometers in the same activity, they always show the same time.
I am trying to implement a board game like chess and keep the time of players. So initially one chronometer runs and the other one waits, when one chronometer…

firatdulger
- 3
- 1