@Override
    public boolean onPrepareOptionsMenu (Menu menu) {
        MenuItem item;

        item = menu.findItem(R.id.optionMouseEvents);
        if (item != null) {
            Log.d(TAG, "Found EnableMouseEvents menu item");
            if (enableMouseEvents) {
                item.setTitle(R.string.strOptionDisableMouseEventsTitle);
            } else {
                item.setTitle(R.string.strOptionEnableMouseEventsTitle);
            }
        }

        item = menu.findItem(R.id.optionJoystickEvents);
        if (item != null) {
            Log.d(TAG, "Found EnableJoystickEvents menu item");
            if (enableJoystickEvents) {
                item.setTitle(R.string.strOptionDisableJoystickEventsTitle);
            } else {
                item.setTitle(R.string.strOptionEnableJoystickEventsTitle);
            }
        }

        item = menu.findItem(R.id.optionKeyEvents);
        if (item != null) {
            Log.d(TAG, "Found EnableKeyEvents menu item");
            if (enableKeyEvents) {
                item.setTitle(R.string.strOptionDisableKeyEventsTitle);
            } else {
                item.setTitle(R.string.strOptionEnableKeyEventsTitle);
            }
        }

        item = menu.findItem(R.id.optionVerboseLogging);
        if (item != null) {
            Log.d(TAG, "Found EnableVerboseLogging menu item");
            if (verboseLogging) {
                item.setTitle(R.string.strOptionDisableVerboseLoggingTitle);
            } else {
                item.setTitle(R.string.strOptionEnableVerboseLoggingTitle);
            }
        }

        return true;
    }
Check to see if the class extends Application or SimpleApplication
@param className Class name to check
@return true if the check passes, false otherwise
jme3-android-examples/src/main/java/org/jmonkeyengine/jme3androidexamples/MainActivity.java