Code example for FragmentPagerAdapter

Methods: notifyDataSetChanged

0
		TabInfo info = new TabInfo(clss, args);
		tab.setTag(info);
		tab.setTabListener(this);
		mTabs.add(info);
		mActionBar.addTab(tab);
		notifyDataSetChanged(); 
	} 
 
	@Override 
	public int getCount() { 
		return mTabs.size();
	} 
 
	@Override 
	public Fragment getItem(int position) {
		TabInfo info = mTabs.get(position);
		return Fragment.instantiate(mContext, info.clss.getName(),
				info.args);
	} 
 
Contextual code suggestions in your IDE  Get Codota for Java