fltk/Android
Albrecht Schlosser 3b73dece7b Set missing svn properties.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-13 23:31:38 +00:00
..
FL Set missing svn properties. 2017-03-13 23:31:38 +00:00
jni Completed the vector font. 2016-03-25 23:10:15 +00:00
res/values Adding some basic Android native setup 2016-01-04 19:06:39 +00:00
AndroidManifest.xml Adding some basic Android native setup 2016-01-04 19:06:39 +00:00
README.txt Adding some basic Android native setup 2016-01-04 19:06:39 +00:00
adb-run.sh (incomplete) Add files required to compile for Android via Pico driver. 2016-03-11 00:19:27 +00:00
config.h Set missing svn properties. 2017-03-13 23:31:38 +00:00
default.properties Adding some basic Android native setup 2016-01-04 19:06:39 +00:00
mk (incomplete) Add files required to compile for Android via Pico driver. 2016-03-11 00:19:27 +00:00

README.txt

here's the general process for building and installing an Android application which uses the NDK.

1. cd to the root of its source code.

2. Run ndk-build. This builds the native code, and should result in some .so files being put into the libs directory.

3. android update project --path . --name something

4. ant debug (or similar). This will build the Java code and create an .apk. Crucially, the build process will pick up the .so files left within the libs directory and include them into the .apk.

5. adb install bin/name-of-project.apk

6. Then launch as normal using the Android GUI or using an am start command such as you give.
6a. emulator -avd Intel_x86 

7. adb shell am start -n com.example.native_activity 
     - or -
   adb shell am start com.example.native_activity/android.app.NativeActivity

8. adb uninstall com.example.native_activity


 - Matt