Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
android_dev_notes [2011-04-13 08:41] – davegriffiths | android_dev_notes [2011-04-20 10:41] – davegriffiths | ||
---|---|---|---|
Line 28: | Line 28: | ||
Sidestepping java with the NDK: http:// | Sidestepping java with the NDK: http:// | ||
+ | |||
+ | Building ndk sources by putting the ndk directory on your path and running | ||
+ | |||
+ | ndk-build | ||
+ | | ||
+ | Compiler flags are in Android.mk, debug options are set by the java project, add: | ||
+ | |||
+ | android: | ||
+ | | ||
+ | To the application properties in the manifest. | ||
+ | |||
+ | Writing to the sdcard from the ndk - you can just use fopen("/ | ||
+ | |||
+ | < | ||
+ | |||
+ | To the manefest. | ||
+ | |||
+ | Debugging on emulator - in order to find the symbols first run: | ||
+ | |||
+ | set solib-search-path / | ||
+ | | ||
+ | Or, alternatively use addr2line to convert a crash address to the source location: | ||
+ | |||
+ | adb logcat | ||
+ | (... lots of stuff including stack trace ...) | ||
+ | | ||
+ |