Task 1. Add Lifecycle Callbacks to TwoActivities
1.1 (Optional) Copy the TwoActivities Project
pada tahap ini hanya perlu menyalin folder twoactivities sebelumnya dan melakukan refractor (rename) dan sync
1.2 Implement callbacks in to MainActivity
1.3 Implement lifecycle callbacks in SecondActivity
1.4 Observe the log as the app runs
Task 2. Save and restore the activity instance state
2.1 Save the activity instance state with onSaveInstanceState()
2.2 Restore the activity instance state in onCreate()
Recent Comments