Skip to content

⏱ ChronoMeter is a sleek and feature-rich stopwatch app for Android OS built using Java.

Notifications You must be signed in to change notification settings

Nayak-Sahil/ChronoMeter

Repository files navigation

⏱ ChronoMeter

  • A simple efficient stopwatch timer Android application built using Java.
  • This app provides precise timing functionalities and a user-friendly interface for tracking time durations accurately.

✨ Glipmse of Application:

DiffiHellmen Process

👩‍💻 How to use ChronoMeter in Android?

Add Chronometer to Layout: Include the Chronometer widget in your layout XML file.

<Chronometer
    android:id="@+id/chronometer"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:format="HH:mm:ss"
    android:textSize="48sp" />

How to operate Chronometer by programmatically?

Initialize Chronometer

Chronometer chrnMeter = findViewById(R.id.chronometer);

Start/Resume Chronometer

chrnMeter.start();

Pause Chronometer

chrnMeter.stop();

Reset Chronometer to 00:00

chrnMeter.setBase(SystemClock.elapsedRealtime());
// after reset value to 00:00 above setBase() restart the timer not just reset. so it's important to stop after resetting value.
chrnMeter.stop();

About

⏱ ChronoMeter is a sleek and feature-rich stopwatch app for Android OS built using Java.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages