title: how to update fragement data when swiching Tabs
body: <p>I am using Material Tab that I used 3 tabs.</p>
  
  <p>Tab A [ Product List ]  </p>
  
  <p>Has a Recycle list and data populating from remote Server. For ex, it has Product title, image and favorite image</p>
  
  <p>Tab B [ Favorite Product List ] </p>
  
  <p>Tab C [ Contact Us ]</p>
  
  <p>What I try to implement, Once user select on favorite button ( add to favorite ) that particular list item show in TAB_B [ Favorite Product List ]</p>
  
  <p>I have used shared preference and save data as Gson format. I have followed this tutorial</p>
  
  <p><a href="http://androidopentutorials.com/android-how-to-store-list-of-values-in-sharedpreferences/" rel="nofollow">http://androidopentutorials.com/android-how-to-store-list-of-values-in-sharedpreferences/</a></p>
  
  <p>The issue is, once I add Item and remove item from Product List [ Tab A ] perform well, and it is not showing at Tab B [ Favorite Product List ]. Once I restart the app Favorite Product List is showing at Tab b. I used some tricks like broadcast receivers kind of things but it is not working correctly.</p>
  
  <p>I use <code>it.neokree:MaterialTabs:0.11</code> library to populate tabs</p>
  
  <p>Here is my some codes that I have been used.</p>
  
  <p>Please guide me, where I did wrong.</p>