title: FragmentPagerAdapter and notifyDataSetChanged
body: <p>How can I use <code>notifyDataSetChanged</code> with <code>FragmentPagerAdapter</code> ? </p>
  
  <p>In <code>onResume</code>:<br>
  I used <code>mMyFragmentPagerAdapter.notifyDataSetChanged();</code> but it didnt worked </p>
  
  <p>But  <br><code>mMyFragmentPagerAdapter = new MyFragmentPagerAdapter(getSupportFragmentManager());</code><br> is worked</p>
  
  <pre><code>    public class Activity extends FragmentActivity{
  
       static ViewPager mViewPager;  
          private MyFragmentPagerAdapter mMyFragmentPagerAdapter;  
          public void onCreate(Bundle savedInstanceState) {  
  
              super.onCreate(savedInstanceState);
       mViewPager = (ViewPager) findViewById(R.id.pager);  
              mMyFragmentPagerAdapter = new MyFragmentPagerAdapter(getSupportFragmentManager());  
              mViewPager.setAdapter(mMyFragmentPagerAdapter);  
  }  
       private static class MyFragmentPagerAdapter extends FragmentPagerAdapter { 
      ...
      }
  
      @Override
         protected void onResume() {
             super.onResume();
  
      //WORKS     
               mMyFragmentPagerAdapter = new MyFragmentPagerAdapter(getSupportFragmentManager());        
           mViewPager.setAdapter(mMyFragmentPagerAdapter);  
  
      //DOESN'T WORK
       mMyFragmentPagerAdapter.notifyDataSetChanged();
       mViewPager.setAdapter(mMyFragmentPagerAdapter);     
  
             }
         }
  </code></pre>
  
  <p>Populate:</p>
  
  <pre><code> public void startView() {
   this.questions.clear();  // this.questions is a LinkedList
   this.questions.add(q);
  
      }
  </code></pre>