blob: 98069fcba6b07934bc3ac37d3516611bf8f836e8 [file] [log] [blame]
Thomas Martitz240923a2010-08-02 20:34:47 +00001This folder contains the java parts needed to build an Rockbox as an
2application for android.
3
Thomas Martitze8542ef2010-08-05 12:15:30 +00004* Prerequisites
5
Maurus Cuelenaereab9caea2010-11-06 17:32:52 +00006Download and install the Android SDK[1] and NDK[2], or run installToolchain.sh.
Thomas Martitz4e982d32010-09-02 03:40:02 +00007After you extracted the SDK, you need to run <sdk-dir>/tools/android in order to
8install the actual platform sdk from the available packages tab (SDK Platform
9Android 1.5 or above should work).
10In the virtual devices tab you can also setup a emulator.
Thomas Martitze8542ef2010-08-05 12:15:30 +000011
12
Thomas Martitz4e982d32010-09-02 03:40:02 +000013Then, make sure you have the ANDROID_SDK_PATH and ANDROID_NDK_PATH (pointing to
14the each's root directory) environment variables set up, otherwise configure will fail to find the compiler and
15compiling the java files will fail.
Thomas Martitze8542ef2010-08-05 12:15:30 +000016
Thomas Martitz240923a2010-08-02 20:34:47 +000017* Build instructions
18
Björn Stenberga8ed3392010-09-24 12:03:15 +0000191. Create a separate build folder. Do not build in this source directory.
Thomas Martitz240923a2010-08-02 20:34:47 +000020
Dave Chapman82140062011-02-13 13:26:16 +0000212. Run "../tools/configure". Choose the "Android" target and input your
22 screen resolution.
Thomas Martitz55d70362010-09-22 20:50:06 +000023
Björn Stenberga8ed3392010-09-24 12:03:15 +0000243. Run "make"
Thomas Martitz55d70362010-09-22 20:50:06 +000025
Björn Stenberga8ed3392010-09-24 12:03:15 +0000264. Run "make zip". This has to be run the first time, and any time themes
27 or plugins have changed. Otherwise you may skip it.
Thomas Martitz240923a2010-08-02 20:34:47 +000028
Björn Stenberga8ed3392010-09-24 12:03:15 +0000295. Run "make apk"
Thomas Martitz55d70362010-09-22 20:50:06 +000030
Björn Stenberga8ed3392010-09-24 12:03:15 +0000316. Optional. Install on your target/emulator, using the following command:
32 "$ANDROID_SDK_PATH/tools/adb install -r rockbox.apk"
Thomas Martitz240923a2010-08-02 20:34:47 +000033
34
Thomas Martitze8542ef2010-08-05 12:15:30 +000035[1]: http://developer.android.com/sdk/index.html
36[2]: http://developer.android.com/sdk/ndk/index.html
37[3]: http://asantoso.wordpress.com/2009/09/15/how-to-build-android-application-package-apk-from-the-command-line-using-the-sdk-tools-continuously-integrated-using-cruisecontrol/
38[4]: http://developer.android.com/sdk/installing.html