

onPause() : The system calls this method as the first indication that the user is leaving the fragment.onStart() : The onStart() method is called once the fragment gets visible.In this method you can instantiate objects which require a Context object

At this point, view can be accessed with the findViewById() method. Activity and fragment instance have been created as well as the view hierarchy of the activity. onActivit圜reated() : The onActivit圜reated() is called after the onCreateView() method when the host activity is created.You can return null if the fragment does not provide a UI. To draw a UI for your fragment, you must return a View component from this method that is the root of your fragment’s layout. onCreateView() : The system calls this callback when it’s time for the fragment to draw its user interface for the first time.You should initialize essential components of the fragment that you want to retain when the fragment is paused or stopped, then resumed.

