@Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case R.id.optionMouseEvents:
                enableMouseEvents = !enableMouseEvents;
                Log.d(TAG, "enableMouseEvents set to: " + enableMouseEvents);
                break;
            case R.id.optionJoystickEvents:
                enableJoystickEvents = !enableJoystickEvents;
                Log.d(TAG, "enableJoystickEvents set to: " + enableJoystickEvents);
                break;
            case R.id.optionKeyEvents:
                enableKeyEvents = !enableKeyEvents;
                Log.d(TAG, "enableKeyEvents set to: " + enableKeyEvents);
                break;
            case R.id.optionVerboseLogging:
                verboseLogging = !verboseLogging;
                Log.d(TAG, "verboseLogging set to: " + verboseLogging);
                break;
            default:
                return super.onOptionsItemSelected(item);
        }

        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