README-android.txt
changeset 8079 f8ef325265ed
parent 7944 f19c0aca56aa
equal deleted inserted replaced
8078:ef59ad725ac5 8079:f8ef325265ed
     6 
     6 
     7 Android SDK (version 12 or later)
     7 Android SDK (version 12 or later)
     8 http://developer.android.com/sdk/index.html
     8 http://developer.android.com/sdk/index.html
     9 
     9 
    10 Android NDK r7 or later
    10 Android NDK r7 or later
    11 http://developer.android.com/sdk/ndk/index.html
    11 http://developer.android.com/tools/sdk/ndk/index.html
    12 
    12 
    13 Minimum API level supported by SDL: 10 (Android 2.3.3)
    13 Minimum API level supported by SDL: 10 (Android 2.3.3)
    14 Joystick support is available for API level >=12 devices.
    14 Joystick support is available for API level >=12 devices.
    15 
    15 
    16 ================================================================================
    16 ================================================================================
    27 The Android Java code implements an "Activity" and can be found in:
    27 The Android Java code implements an "Activity" and can be found in:
    28 android-project/src/org/libsdl/app/SDLActivity.java
    28 android-project/src/org/libsdl/app/SDLActivity.java
    29 
    29 
    30 The Java code loads your game code, the SDL shared library, and
    30 The Java code loads your game code, the SDL shared library, and
    31 dispatches to native functions implemented in the SDL library:
    31 dispatches to native functions implemented in the SDL library:
    32 src/SDL_android.c
    32 src/core/android/SDL_android.c
    33 
    33 
    34 Your project must include some glue code that starts your main() routine:
    34 Your project must include some glue code that starts your main() routine:
    35 src/main/android/SDL_android_main.c
    35 src/main/android/SDL_android_main.c
    36 
    36 
    37 
    37 
   258 ================================================================================
   258 ================================================================================
   259  Using Eclipse
   259  Using Eclipse
   260 ================================================================================
   260 ================================================================================
   261 
   261 
   262 First make sure that you've installed Eclipse and the Android extensions as described here:
   262 First make sure that you've installed Eclipse and the Android extensions as described here:
   263 	http://developer.android.com/sdk/eclipse-adt.html
   263 	http://developer.android.com/tools/sdk/eclipse-adt.html
   264 
   264 
   265 Once you've copied the SDL android project and customized it, you can create an Eclipse project from it:
   265 Once you've copied the SDL android project and customized it, you can create an Eclipse project from it:
   266  * File -> New -> Other
   266  * File -> New -> Other
   267  * Select the Android -> Android Project wizard and click Next
   267  * Select the Android -> Android Project wizard and click Next
   268  * Enter the name you'd like your project to have
   268  * Enter the name you'd like your project to have