A sample application for understanding the activity life cycle callbacks