private void setSelection(int position) {
        if (position == -1) {
            arrayAdapter.setSelectedPosition(-1);
            currentPosition = -1;
            currentSelection = "";
            btnOK.setEnabled(false);
            listClasses.invalidateViews();
        } else {
            arrayAdapter.setSelectedPosition(position);
            currentPosition = position;
            currentSelection = arrayAdapter.getItem(position);
            btnOK.setEnabled(true);
            listClasses.invalidateViews();
        }
    }
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