If I use SystemClock.elapsedRealtime(), the stopwatch becomes inconsistent if device restarts. If I use System.currentTimeMillis(), user can adjust device timing from setting break my app timer. Is there a way to keep stopwatch persistent even though user changes device timing or restart his device while staying offline?

submitted by /u/Pravejxlab
[link] [comments]