public void onClick(View view) {
        if (view.equals(btnOK)) {
            /* Get selected class, pack it in the intent and start the test app */
            Log.d(TAG, "User selected OK for class: " + currentSelection);
            Intent intent = new Intent(this, TestActivity.class);
//            intent.putExtra(SELECTED_APP_CLASS, currentSelection);
//            intent.putExtra(ENABLE_MOUSE_EVENTS, enableMouseEvents);
//            intent.putExtra(ENABLE_JOYSTICK_EVENTS, enableJoystickEvents);
//            intent.putExtra(ENABLE_KEY_EVENTS, enableKeyEvents);

            Bundle args = new Bundle();

            args.putString(MainActivity.SELECTED_APP_CLASS, currentSelection);
//            Log.d(this.getClass().getSimpleName(), "AppClass="+currentSelection);

            args.putBoolean(MainActivity.ENABLE_MOUSE_EVENTS, enableMouseEvents);
//            Log.d(TestActivity.class.getSimpleName(), "MouseEnabled="+enableMouseEvents);

            args.putBoolean(MainActivity.ENABLE_JOYSTICK_EVENTS, enableJoystickEvents);
//            Log.d(TestActivity.class.getSimpleName(), "JoystickEnabled="+enableJoystickEvents);

            args.putBoolean(MainActivity.ENABLE_KEY_EVENTS, enableKeyEvents);
//            Log.d(TestActivity.class.getSimpleName(), "KeyEnabled="+enableKeyEvents);

            args.putBoolean(MainActivity.VERBOSE_LOGGING, verboseLogging);
//            Log.d(TestActivity.class.getSimpleName(), "VerboseLogging="+verboseLogging);

            intent.putExtras(args);

            startActivity(intent);
        } else if (view.equals(btnCancel)) {
            /* Exit */
            Log.d(TAG, "User selected Cancel");
            finish();
        }
    }
User clicked a view on the screen.  Check for the OK and Cancel buttons
and either start the application or exit.
@param view
jme3-android-examples/src/main/java/org/jmonkeyengine/jme3androidexamples/MainActivity.java