Activity lifecycle are punctuated by a series
of important method callbacks.These callbacks are shown in Figure 4.3.
Here are the method stubs for the most important callbacks of the Activity class:
protected void onStart();
protected void onRestart();
protected void onResume();
protected void onPause();
protected void onStop();
protected void onDestroy();