README.android
changeset 4964 6c645018741e
parent 4954 144d9df7e611
child 4965 91d0085b7560
     1.1 --- a/README.android	Wed Jan 05 00:09:19 2011 -0800
     1.2 +++ b/README.android	Thu Jan 06 16:11:21 2011 -0800
     1.3 @@ -2,7 +2,8 @@
     1.4  Simple DirectMedia Layer for Android
     1.5  ================================================================================
     1.6  
     1.7 -Requirements: Android NDK r4 or later
     1.8 +Requirements: Android SDK and Android NDK r4 or later
     1.9 +http://developer.android.com/
    1.10  
    1.11  ================================================================================
    1.12   How the port works
    1.13 @@ -16,26 +17,44 @@
    1.14  - This eventually produces a standard Android .apk package
    1.15  
    1.16  
    1.17 -
    1.18 -
    1.19 -
    1.20 -
    1.21  ================================================================================
    1.22   Building an app
    1.23  ================================================================================
    1.24  
    1.25  Instructions:
    1.26 -1. Edit android/config.cfg to point to the location of the NDK
    1.27 -2. Run 'make -f Makefile.android'. If all goes well, libsdl.a should be created
    1.28 -3. Place your application source files in android/project/jni
    1.29 -4. Edit the Android.mk to include your source files
    1.30 +1. Copy the android-project directory wherever you want your Android project to go
    1.31 +2. Move this SDL directory into the <project>/jni directory
    1.32 +3. Place your application source files in the <project>/jni/src directory
    1.33 +4. Edit <project>/jni/src/Android.mk to include your source files
    1.34  5. Run 'ndk-build' (a script provided by the NDK). This compiles the C source
    1.35 -6. Edit project/local.properties to point to the SDK directory
    1.36 -6. Run 'ant debug' in android/project. This compiles the .java and eventually 
    1.37 -creates a .apk with the C source embedded
    1.38 -7. 'ant install' will push the apk to the device or emulator (if connected)
    1.39  
    1.40 +If you want to use the Eclipse IDE, skip to the Eclipse section below.
    1.41  
    1.42 +6. Edit <project>/local.properties to point to the Android SDK directory
    1.43 +7. Run 'ant debug' in android/project. This compiles the .java and eventually 
    1.44 +creates a .apk with the native code embedded
    1.45 +8. 'ant install' will push the apk to the device or emulator (if connected)
    1.46 +
    1.47 +
    1.48 +================================================================================
    1.49 + Using Eclipse
    1.50 +================================================================================
    1.51 +
    1.52 +NEED CONTENT
    1.53 +
    1.54 +
    1.55 +================================================================================
    1.56 + Loading files
    1.57 +================================================================================
    1.58 +
    1.59 +NEED CONTENT
    1.60 +
    1.61 +
    1.62 +================================================================================
    1.63 + Troubleshooting
    1.64 +================================================================================
    1.65 +
    1.66 +NEED CONTENT
    1.67  
    1.68  
    1.69  ================================================================================