This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| android_dev_notes [2011-04-13 08:41] – 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 28: | Line 32: | ||
| 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 ...) | ||
| + | | ||