Code example for FragmentActivity

Methods: onCreateOptionsMenu

0
        mDistribution = new DistributionLibrary(this, MENU_DISTRIBUTION_START, DIALOG_DISTRIBUTION_START); 
    } 
 
 	@Override 
	public boolean onCreateOptionsMenu(Menu menu) { 
 		super.onCreateOptionsMenu(menu); 
 		mDistribution.onCreateOptionsMenu(menu); 
 		return true; 
 	} 
 
	@Override 
	public boolean onOptionsItemSelected(MenuItem item) { 
		if (mDistribution.onOptionsItemSelected(item)) { 
			return true; 
		} 
		return super.onOptionsItemSelected(item); 
	} 
 
	@Override 
	protected Dialog onCreateDialog(int id) { 
		return mDistribution.onCreateDialog(id);