Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
android_dev_notes [2011-04-13 07:50] – created davegriffiths | android_dev_notes [2012-08-09 15:02] (current) – 83.101.5.51 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | on linux with emacs | + | ===setup=== |
+ | * install [...] | ||
+ | * '' | ||
+ | ===on linux with emacs=== | ||
+ | * general overview > http:// | ||
* install sdk + use it to install runtimes etc: http:// | * install sdk + use it to install runtimes etc: http:// | ||
* useful but a bit out of date: http:// | * useful but a bit out of date: http:// | ||
Line 26: | Line 30: | ||
Load a file into emacs, M-X android-ant-install, | Load a file into emacs, M-X android-ant-install, | ||
+ | |||
+ | 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 ...) | ||
+ | |