aboutsummaryrefslogtreecommitdiffhomepage
path: root/platform_tools/android/examples/hello_skia_app/README
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-04 21:13:11 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-04 21:13:11 +0000
commitecaa59d878942fc87b0daa5171dfcdcb133c84a8 (patch)
treef29320cb52ad85a213a9ec9a34792c5b570c00d0 /platform_tools/android/examples/hello_skia_app/README
parent8cb108803425481bf58f1eeb388cf818701c5e77 (diff)
create simple skia app for android using jni
R=djsollen@google.com Author: zachr@google.com Review URL: https://chromiumcodereview.appspot.com/16336004 git-svn-id: http://skia.googlecode.com/svn/trunk@9437 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'platform_tools/android/examples/hello_skia_app/README')
-rw-r--r--platform_tools/android/examples/hello_skia_app/README39
1 files changed, 39 insertions, 0 deletions
diff --git a/platform_tools/android/examples/hello_skia_app/README b/platform_tools/android/examples/hello_skia_app/README
new file mode 100644
index 0000000000..0bc66afa8a
--- /dev/null
+++ b/platform_tools/android/examples/hello_skia_app/README
@@ -0,0 +1,39 @@
+HelloSkia
+=========
+
+Intro
+-----
+
+This is a minimal Android app that uses JNI and Skia to do rendering.
+
+Setup
+-----
+
+These instructions need to be followed only once to setup your copy of HelloSkia. Path parts that
+are surrounded with curly braces should be replaced with the paths that are described.
+
+1. Follow the quick start guide on building Skia for Android.
+
+2. Copy {Skia root directory}/trunk/out/config/android-{your architecture}/{Relase or
+Debug}/lib.target/libskia_android.so into {HellSkia root directory}/jni/skia/libskia_android.so
+
+3. Copy {Skia root directory}/trunk/include into {HellSkia root directory}/jni/skia. This should be
+done so that the path {HellSkia root directory}/jni/skia/include is a folder that contains, to name
+just a few, the folders config and core.
+
+
+Building
+--------
+
+The following assumes that the platform-tools directory of the Android SDK and the Android NDK
+directory are both on the system path. This also assumes that adb is working and connected with some
+device or virtual device.
+
+1. Open a terminal to the HelloSkia root directory and enter these commands:
+
+$ ndk-build # Builds the modules inside of jni/
+$ ant debug # Builds the Activity and packages it with all resources and modules of jni/
+$ adb install -r bin/HelloSkia-debug.apk # Installs the app onto a device
+
+2. To run the app, open your Android device's launcher and start the application labeled
+HelloSkiaActivity.