From bcd79f9307c8eee4d8baaab729538c00b3049f86 Mon Sep 17 00:00:00 2001 From: "nor..om" Date: Thu, 24 Nov 2011 21:22:37 +0000 Subject: [PATCH] SDK: - update some help pages git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8799 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/gde/core/docs/jme3/android.html | 67 ++++++++++++------- .../jme3/intermediate/headlessserver.html | 6 +- .../core/docs/sdk/default_build_script.html | 10 +-- 3 files changed, 47 insertions(+), 36 deletions(-) diff --git a/sdk/jme3-core/javahelp/com/jme3/gde/core/docs/jme3/android.html b/sdk/jme3-core/javahelp/com/jme3/gde/core/docs/jme3/android.html index 39fd9bd2f..c5da66f32 100644 --- a/sdk/jme3-core/javahelp/com/jme3/gde/core/docs/jme3/android.html +++ b/sdk/jme3-core/javahelp/com/jme3/gde/core/docs/jme3/android.html @@ -21,15 +21,11 @@ This is a draft of a feature that is work in progress. If you have questions or
  • Install jMonkeyEngine SDK
  • -
  • Install Android Project support in the jMonkeyEngine SDK:
    +
  • (Optional) Install NBAndroid in the jMonkeyEngine SDK:
      -
    1. Open Tools→Plugins→Settings
      -
    2. -
    3. Activate the nightly build.
      -
    4. Go to Tools→Plugins→Available Plugins.
    5. -
    6. Install the Android Support plugin.
      +
    7. Install the "Android" plugin.
  • @@ -136,24 +132,7 @@ It lets you edit the MainActivitity.java, the AndroidManifest.xml, and build.pro

    -The Android deployment option creates a separate sub-project for android and makes the main project and associated libraries available to the sub-project as libraries. The sub-project can be edited using NBAndroid (see below) or using Eclipse or any other IDE that supports standard android projects. Normally you do not need to edit the android project files. Exceptions are described further below. -

    - -

    -Activating the nbandroid plugin in the jMonkeyEngine SDK is optional, but recommended. You do not need the nbandroid plugin for Android support to work, however nbandroid will not interfere and will in fact allow you to edit the android source files and project more conveniently. To be able to edit, extend and code android-specific code in Android projects, install NBAndroid from the update center: -

    -
      -
    1. Open Tools→Plugins→Settings
      -
    2. -
    3. Go to Tools→Plugins→Available Plugins.
      -
    4. -
    5. Install the NbAndroid plugin. (Will show up as Android)
      -
    6. -
    - -

    - -Restart the jMonkeyEngine SDK. +The Android deployment option creates a separate sub-project for android and makes the main project and associated libraries available to the sub-project as libraries. The sub-project can be edited using NBAndroid (see below) or using Eclipse or any other IDE that supports standard android projects. Normally you do not need to edit the android project files. Exceptions are described further below. The libraries are first added to the android sub-project when the main project is built for the first time.

    @@ -165,25 +144,61 @@ Restart the jMonkeyEngine SDKSDK.

    + +

    +Building +

    1. Right-click the project node and choose Set Main Project.
    2. Right-click the project node to build your project.
      An APK file is created in the "dist" folder.
    3. -
    4. (Right-click and run the project. The default run target uses the default device set in the Android configuration utility. If you set that to a phone you can run the application directly on your phone!)
      +
    + +

    + +Running +

    +
      +
    1. Select the project
    2. -
    3. Alternatively, select the "Android Device" build configuration next to the Run toolbar button. You can run the project on the emulator (in theory – the emulator doesn’t support OpenGL 2.0 yet?)
      +
    4. Select the "Android Device" build configuration next to the Run toolbar button.
      +
    5. +
    6. Make sure "Compile on Save" is disabled in your project preferences.
      +
    7. +
    8. Run the application on a connected phone by right-clicking it and selecting "Run" or press the "Play" button in the toolbar.

    +The default android run target uses the default device set in the Android configuration utility. If you set that to a phone you can run the application directly on your phone, the emulator does not support OpenGLES 2.0 and cannot run the engine. +

    + +

    Optionally, download

    +

    Installing NBAndroid

    +
    + +

    +Activating the nbandroid plugin in the jMonkeyEngine SDK is optional, but recommended. You do not need the nbandroid plugin for Android support to work, however nbandroid will not interfere and will in fact allow you to edit the android source files and project more conveniently. To be able to edit, extend and code android-specific code in Android projects, install NBAndroid from the update center: +

    +
      +
    1. Open Tools→Plugins→Settings
      +
    2. +
    3. Go to Tools→Plugins→Available Plugins.
      +
    4. +
    5. Install the NbAndroid plugin. (Will show up as Android)
      +
    6. +
    + +
    +

    Beta Notes