Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: platform_tools/android/examples/hello_skia_app/README

Issue 16336004: create simple skia app for android using jni (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: remove binary files Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 HelloSkia
2 =========
3
4 Intro
5 -----
6
7 This is a minimal Android app that uses JNI and Skia to do rendering.
8
9 Setup
10 -----
11
12 These instructions need to be followed only once to setup your copy of HelloSkia . Path parts that
13 are surrounded with curly braces should be replaced with the paths that are desc ribed.
14
15 1. Follow the quick start guide on building Skia for Android.
16
17 2. Copy {Skia root directory}/trunk/out/config/android-{your architecture}/{Rela se or
18 Debug}/lib.target/libskia_android.so into {HellSkia root directory}/jni/skia/lib skia_android.so
19
20 3. Copy {Skia root directory}/trunk/include into {HellSkia root directory}/jni/s kia. This should be
21 done so that the path {HellSkia root directory}/jni/skia/include is a folder tha t contains, to name
22 just a few, the folders config and core.
23
24
25 Building
26 --------
27
28 The following assumes that the platform-tools directory of the Android SDK and t he Android NDK
29 directory are both on the system path. This also assumes that adb is working and connected with some
30 device or virtual device.
31
32 1. 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
38 2. To run the app, open your Android device's launcher and start the application labeled
39 HelloSkiaActivity.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698