How can I use `notifyDataSetChanged` with `FragmentPagerAdapter` ? 

In `onResume`:  

I used `mMyFragmentPagerAdapter.notifyDataSetChanged();` but it didnt worked 

But   
`mMyFragmentPagerAdapter = new MyFragmentPagerAdapter(getSupportFragmentManager());`  
 is worked

```
    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);     

           }
       }

```

Populate:

```
 public void startView() {
 this.questions.clear();  // this.questions is a LinkedList
 this.questions.add(q);

    }

```