MyActivity.javaAPI DocAndroid 5.1 API1047Thu Mar 12 22:22:44 GMT


public class MyActivity extends

Fields Summary
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle savedInstanceState)

public booleanonCreateOptionsMenu(android.view.Menu menu)

        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(, menu);
        return true;
public booleanonOptionsItemSelected(android.view.MenuItem item)

        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();
        if (id == {
            return true;
        return super.onOptionsItemSelected(item);