Implement timer on Android.