Show pageOld revisionsBacklinksBack to top You've loaded an old revision of the document! If you save it, you will create a new version with this data. Media Fileson linux with emacs * 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 * (install everything to ~/opt and set up paths) setting up the hardware: * enable debugging on device * set permissions on usb device by creating /etc/udev/rules.d/51-android.rules (0bb4 is htc vendor): SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" test it works with: adb devices creating a project (from http://developer.android.com/guide/tutorials/hello-world.html ): android create project \ --package com.android.helloandroid \ --activity HelloAndroid \ --target 2 \ --path <path-to-your-project>/HelloAndroid Use "android list targets" to get the target number 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. Please fill all the letters into the box to prove you're human. Please keep this field empty: SavePreviewCancel Edit summary Note: By editing this page you agree to license your content under the following license: CC Attribution-Share Alike 4.0 International android_dev_notes.1303282267.txt.gz Last modified: 2011-04-20 06:51by davegriffiths