README.android
changeset 7166 8d17ec58f019
parent 7016 24edf0189bc5
equal deleted inserted replaced
7165:f7fc1f0c3a08 7166:8d17ec58f019
    21 the SDL library
    21 the SDL library
    22 - This means that your application C code must be placed inside an Android 
    22 - This means that your application C code must be placed inside an Android 
    23 Java project, along with some C support code that communicates with Java
    23 Java project, along with some C support code that communicates with Java
    24 - This eventually produces a standard Android .apk package
    24 - This eventually produces a standard Android .apk package
    25 
    25 
    26 The Android Java code implements an "activity" and can be found in:
    26 The Android Java code implements an "Activity" and can be found in:
    27 android-project/src/org/libsdl/app/SDLActivity.java
    27 android-project/src/org/libsdl/app/SDLActivity.java
    28 
    28 
    29 The Java code loads your game code, the SDL shared library, and
    29 The Java code loads your game code, the SDL shared library, and
    30 dispatches to native functions implemented in the SDL library:
    30 dispatches to native functions implemented in the SDL library:
    31 src/SDL_android.cpp
    31 src/SDL_android.cpp
    55 
    55 
    56 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:
    57 
    57 
    58 android-project/
    58 android-project/
    59 	AndroidManifest.xml	- package manifest. Among others, it contains the class name
    59 	AndroidManifest.xml	- package manifest. Among others, it contains the class name
    60 				  of the main activity.
    60 				  of the main Activity and the package name of the application.
    61 	build.properties	- empty
    61 	build.properties	- empty
    62 	build.xml		- build description file, used by ant. The actual application name
    62 	build.xml		- build description file, used by ant. The actual application name
    63 				  is specified here.
    63 				  is specified here.
    64 	default.properties	- holds the target ABI for the application, android-10 and up
    64 	default.properties	- holds the target ABI for the application, android-10 and up
    65 	project.properties	- holds the target ABI for the application, android-10 and up
    65 	project.properties	- holds the target ABI for the application, android-10 and up
   114 
   114 
   115 ================================================================================
   115 ================================================================================
   116  Customizing your application icon
   116  Customizing your application icon
   117 ================================================================================
   117 ================================================================================
   118 
   118 
   119 Conceptually changing your icon is just replacing the icon.png files in the
   119 Conceptually changing your icon is just replacing the "ic_launcher.png" files in
   120 drawable directories under the res directory. There are 3 directories for
   120 the drawable directories under the res directory. There are four directories for
   121 different screen sizes. These can be replaced with 1 dir called 'drawable',
   121 different screen sizes. These can be replaced with one dir called "drawable",
   122 containing an icon file 'icon.png' with dimensions 48x48 or 72x72.
   122 containing an icon file "ic_launcher.png" with dimensions 48x48 or 72x72.
   123 
   123 
   124 You may need to change the name of your icon in AndroidManifest.xml to match
   124 You may need to change the name of your icon in AndroidManifest.xml to match
   125 this icon filename.
   125 this icon filename.
   126 
   126 
   127 ================================================================================
   127 ================================================================================