Code example for FragmentActivity

0
package com.actionbarsherlock.tests.app; 
 
import android.os.Bundle; 
import android.support.v4.app.FragmentActivity; 
import android.support.v4.view.Menu; 
import android.support.v4.view.MenuItem; 
 
public final class Issue0031 extends FragmentActivity { 
	private MenuItem mResourceMenuItem;
	private MenuItem mStringMenuItem;
	 
	@Override 
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.blank); 
    } 
 
	@Override 
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.issue0031, menu);
		mResourceMenuItem = menu.findItem(R.id.issue0031_resource_item);
		mStringMenuItem = menu.findItem(R.id.issue0031_string_item);
		return false;