From c57858905386a697fd848a8c4f123fbd3bd6268e Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Mon, 21 Nov 2011 21:07:40 +0000 Subject: [PATCH] SDK: - add some comments to android MainActivity git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8757 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/com/jme3/gde/android/AndroidSdkTool.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/sdk/jme3-android/src/com/jme3/gde/android/AndroidSdkTool.java b/sdk/jme3-android/src/com/jme3/gde/android/AndroidSdkTool.java index c17c08e96..6f5eb84d7 100644 --- a/sdk/jme3-android/src/com/jme3/gde/android/AndroidSdkTool.java +++ b/sdk/jme3-android/src/com/jme3/gde/android/AndroidSdkTool.java @@ -319,15 +319,26 @@ public class AndroidSdkTool { } private static String mainActivityString(String mainClass, String packag) { - String str = "package " + packag + ";\n" + String str = + "package " + packag + ";\n" + + " \n" + "import com.jme3.app.AndroidHarness;\n" + "import android.content.pm.ActivityInfo;\n" + "import com.jme3.system.android.AndroidConfigChooser.ConfigType;\n" + + " \n" + "public class MainActivity extends AndroidHarness{\n" + + " \n" + + " /*\n" + + " * Note that you can ignore the errors displayed in this file,\n" + + " * the android project will build regardless.\n" + + " * Install the 'Android' plugin under Tools->Plugins->Available Plugins\n" + + " * to get error checks and code completion for the Android project files.\n" + + " */\n" + + " \n" + " public MainActivity(){\n" + " // Set the application class to run\n" + " appClass = \"" + mainClass + "\";\n" - + " //eglConfigType = ConfigType.FASTEST; // Default\n" + + " // Try ConfigType.FASTEST; or ConfigType.LEGACY if you have problems\n" + " eglConfigType = ConfigType.BEST;\n" + " // Exit Dialog title & message\n" + " exitDialogTitle = \"Exit?\";\n" @@ -341,6 +352,7 @@ public class AndroidSdkTool { + " // Invert the MouseEvents Y (default = true)\n" + " mouseEventsInvertY = true;\n" + " }\n" + + " \n" + "}\n"; return str; }