Code example for FragmentActivity

Methods: onOptionsItemSelected

0
		return false; 
	} 
 
	@Override 
	public boolean onOptionsItemSelected(MenuItem item) {
		return super.onOptionsItemSelected(item);
	} 
 
	@Override 
	public boolean onContextItemSelected(android.view.MenuItem item) {
		return super.onContextItemSelected(item);
	} 
 
	public void openActivityOrFragment(Intent intent) {
		// Default implementation simply calls startActivity 
		startActivity(intent);
	} 
 
	protected void shareText(String shareItem) {
 
		final Intent intent = new Intent(Intent.ACTION_SEND);