Code example for FragmentActivity

Methods: onCreateOptionsMenu

0
    } 
	 
	@Override 
    public boolean onCreateOptionsMenu(Menu menu) {
	    mMenu = menu;
        return super.onCreateOptionsMenu(menu);
    } 
	 
	public Menu getMenu() {
	    return mMenu;
	} 
 
    static final class TestAdapter extends FragmentPagerAdapter { 
        public TestAdapter(FragmentManager fm) {
            super(fm);
        } 
 
        @Override 
        public int getCount() { 
            return 2; 
        }