User Tools

Site Tools


android_dev_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
android_dev_notes [2011/04/13 09:50]
davegriffiths created
android_dev_notes [2012/08/09 17:02] (current)
83.101.5.51
Line 1: Line 1:
-on linux with emacs+===setup=== 
 +  * install [...] 
 +  * ''​android update sdk --no-ui''​
  
 +===on linux with emacs===
 +  * general overview > http://​gregorygrubbs.com/​development/​tips-on-android-development-using-emacs/​
   * install sdk + use it to install runtimes etc: http://​developer.android.com/​sdk/​installing.html   * install sdk + use it to install runtimes etc: http://​developer.android.com/​sdk/​installing.html
   * useful but a bit out of date: http://​riddell.us/​AndroidWithEmacsOnUbuntu.html   * useful but a bit out of date: http://​riddell.us/​AndroidWithEmacsOnUbuntu.html
Line 26: Line 30:
  
 Load a file into emacs, M-X android-ant-install,​ and the package should appear in your apps list Load a file into emacs, M-X android-ant-install,​ and the package should appear in your apps list
 +
 +Sidestepping java with the NDK: http://​mindtherobot.com/​blog/​452/​android-beginners-ndk-setup-step-by-step/​
 +
 +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:​debuggable="​true"​
 +  ​
 +To the application properties in the manifest.
 +
 +Writing to the sdcard from the ndk - you can just use fopen("/​sdcard/​newfile.txt"​) but you need to remember to add:
 +
 +  <​uses-permission android:​name="​android.permission.WRITE_EXTERNAL_STORAGE"​ />
 +
 +To the manefest.
 +
 +Debugging on emulator - in order to find the symbols first run:
 +
 +  set solib-search-path /​path/​to/​your/​project/​obj/​local/​armeabi ​
 +  ​
 +Or, alternatively use addr2line to convert a crash address to the source location:
 +
 +   adb logcat
 +   (... lots of stuff including stack trace ...)
 +   ​addr2line -e libfoo.so deadbeef
android_dev_notes.1302681017.txt.gz · Last modified: 2011/04/13 09:50 by davegriffiths