1HelloSkia 2========= 3 4Intro 5----- 6 7This is a minimal Android app that uses JNI and Skia to do rendering. 8 9Setup 10----- 11 12These instructions need to be followed only once to setup your copy of HelloSkia. Path parts that 13are surrounded with curly braces should be replaced with the paths that are described. 14 151. Follow the quick start guide on building Skia for Android. 16 172. Copy {Skia root directory}/trunk/out/config/android-{your architecture}/{Relase or 18Debug}/lib.target/libskia_android.so into {HellSkia root directory}/jni/skia/libskia_android.so 19 203. Copy {Skia root directory}/trunk/include into {HellSkia root directory}/jni/skia. This should be 21done so that the path {HellSkia root directory}/jni/skia/include is a folder that contains, to name 22just a few, the folders config and core. 23 24 25Building 26-------- 27 28The following assumes that the platform-tools directory of the Android SDK and the Android NDK 29directory are both on the system path. This also assumes that adb is working and connected with some 30device or virtual device. 31 321. Open a terminal to the HelloSkia root directory and enter these commands: 33 34$ ndk-build # Builds the modules inside of jni/ 35$ ant debug # Builds the Activity and packages it with all resources and modules of jni/ 36$ adb install -r bin/HelloSkia-debug.apk # Installs the app onto a device 37 382. To run the app, open your Android device's launcher and start the application labeled 39HelloSkiaActivity. 40