How to refresh data in ViewPager Fragments?
<p>I need to know the life-cycle of the Fragments inside ViewPager?
I have a ViewPager of 3 tabs (3 Fragments )
What is the life-cycle while swiping between them ?</p>

<p>I notice that when i go from Fragment 3 to Fragment 1 , it is being refreshed. so which method in the life-cycle is called in this moment?</p>

<p>I tried to put Toast inside every method, but i found that they are called after each other so i did`t know which one is responsible for refreshing.</p>

<p>I guess it`s onActivityCreated() ,  but to call it i must pass Bundle saveInstancestate. When i pass null it crashes, so how to get this object ?</p>

<p>If there any other/better approach to do so, please share.
The goal is to refresh the data inside the fragment when i click on button in the actionbar.</p>

<p>Thanks</p>