Resuming CountdownTimer after rotation
问题 I have a CountdownTimer that counts down from 60 seconds. This CountdownTimer works by setting a textView to the remaining milliseconds, but whenever i rotate my device, the CountdownTimer gets reset. I know this happens because the Activity gets restarted on rotation. So i tried saving the time remaining in a bundle and then restoring it, after the Activity was restarted. long transferValue; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);