README.android
changeset 7016 24edf0189bc5
parent 6987 7084af936d82
child 7166 8d17ec58f019
equal deleted inserted replaced
7015:e3cba60c0f0a 7016:24edf0189bc5
    45 3. Edit <project>/jni/src/Android.mk to include your source files
    45 3. Edit <project>/jni/src/Android.mk to include your source files
    46 4. Run 'ndk-build' (a script provided by the NDK). This compiles the C source
    46 4. Run 'ndk-build' (a script provided by the NDK). This compiles the C source
    47 
    47 
    48 If you want to use the Eclipse IDE, skip to the Eclipse section below.
    48 If you want to use the Eclipse IDE, skip to the Eclipse section below.
    49 
    49 
    50 5. Edit <project>/local.properties to point to the Android SDK directory
    50 5. Create <project>/local.properties and use that to point to the Android SDK directory, by writing a line with the following form:
       
    51 sdk.dir=PATH_TO_ANDROID_SDK
    51 6. Run 'ant debug' in android/project. This compiles the .java and eventually 
    52 6. Run 'ant debug' in android/project. This compiles the .java and eventually 
    52    creates a .apk with the native code embedded
    53    creates a .apk with the native code embedded
    53 7. 'ant debug install' will push the apk to the device or emulator (if connected)
    54 7. 'ant debug install' will push the apk to the device or emulator (if connected)
    54 
    55 
    55 Here's an explanation of the files in the Android project, so you can customize them:
    56 Here's an explanation of the files in the Android project, so you can customize them: