title: Fragment's are not calling OnResume() when swiping with ViewPager
body: <p><strong>Explaining my problem</strong> : </p>
  
  <p>I spend much time but I can not get this to work.I have view pager in main activty that contains three fragments using (Tabhost).My ViewPagerAdapter class extend <code>FragmentStatePagerAdapter</code>.</p>
  
  <p>The problem I'm facing that my <code>OnResume()</code> Method is not called when I swipe the View .And I want to update the view of viewpager's fragment on swipe. </p>
  
  <p>My <code>OnResume()</code> method is only called when i click on the <code>ListView</code> item and back again . but when I press OnLongClick on the ListView  other fragments are not refreshed . </p>
  
  <p><strong>Note</strong> : I know that this question was asking before but none of those solutions helped me .</p>
  
  <p><strong>Note 2:</strong> When my phone goes to sleep then after unlocking phone 2nd fragment calling onResume()</p>
  
  <p>My <code>OnResume()</code> Method in the first tab : </p>
  
  <pre><code> @Override
  public void onResume() {
      super.onResume();
  
      adapterLogin.notifyDataSetChanged();
  }
  </code></pre>
  
  <p>My <code>OnResume()</code> Method in the second Tab: </p>
  
  <pre><code> @Override
  public void onResume() {
      super.onResume();
     adapterLogin.UpdateView(databaseHelper.getAllVoitureFavourite(1,username));
     adapterLogin.notifyDataSetInvalidated();
     adapterLogin.notifyDataSetChanged();
  
  
  }
  </code></pre>
  
  <p>My <code>UpdateView()</code> Method in the <code>BaseAdapter</code> : </p>
  
  <pre><code>public void UpdateView(List&lt;Voiture&gt; items) {
      this.voitureList = items;
      notifyDataSetInvalidated();
      notifyDataSetChanged();
  
  }
  </code></pre>
  
  <p>Screen shot of my App for more understanding mu issue : </p>
  
  <p><a href="https://i.stack.imgur.com/55X17.png" rel="noreferrer"><img src="https://i.stack.imgur.com/55X17.png" alt="enter image description here"></a></p>
  
  <p>Any help will be appreciated.</p>