Millisecond-Chronometer
Millisecond-Chronometer copied to clipboard
Handler should be static
The following handler should really be static:
private Handler mHandler = new Handler() {
public void handleMessage(Message m) {
if (mRunning) {
updateText(SystemClock.elapsedRealtime());
dispatchChronometerTick();
sendMessageDelayed(Message.obtain(this , TICK_WHAT),
100);
}
}
};
For accessing the UI you could consider using weakreferences.
Other then that looks pretty good :)