title: How to refresh fragment in ViewPager manually
body: <p>I'm developing my PagerActivity using the viewPager and pagerAdapter. I've an handler inside that should force the refresh, but how can I refresh one fragment inside the pager?
  I already try with <code>notifyDataSetChanged</code> and <code>setOffscreenPageLimit(0)</code>, but these methods don't work.</p>
  
  <pre><code>public class CustomPagerAdapter extends SmartFragmentStatePagerAdapter {
  private static final String TAG = "CustomPagerAdapter";
  private static int NUM_ITEMS = 4;
  
  private Context context;
  
  public void setContext(Context context) {
      this.context = context;
  }
  
  public CustomPagerAdapter(FragmentManager fm) {
      super(fm);
  }
  
  @Override
  public int getCount() {
      return NUM_ITEMS;
  }
  
  @Override
  public Fragment getItem(int position) {
      Log.d(TAG, "getItem " + position);
      switch (position) {
          case 0:
              return UserInfoFragment.newInstance();
          case 1:
              return ChooseJourneyPatternFragment.newInstance();
          case 2:
              return VehicleJourneyFragment.newInstance();
          case 3:
              return SyncCarFragment.newInstance();
          default:
              return null;
      }
  }
  
  @Override
  public CharSequence getPageTitle(int position) {
      switch (position) {
          case 0:
              return context.getResources().getString(R.string.pagerUserInfo);
          case 1:
              return context.getResources().getString(R.string.pagerPattern);
          case 2:
              return context.getResources().getString(R.string.pagerVehicleJourney);
          case 3:
              return context.getResources().getString(R.string.pagerSync);
          default:
              return null;
      }
  }
  </code></pre>