Android developing under linux

If you get ‘???????? no permissions’ after running ‘adb devices’

In /etc/udev/rules.d/51-android.rules you need to add
SUBSYSTEM==”usb”, SYSFS{idVendor}==”0bb4″, MODE=”0666″

Then:
./adb kill-server
./adb start-server

Advertisements

C Indentation

The following if my preferred C formatting, created with the GNU Indent command:

indent -linux -brf SRC.c -cli8

e.g.

void main(int argc, char ** argv){
<tab>printf(“bonjour”);
<tab>switch(2){
<tab><tab>case 2:
<tab><tab><tab>printf(“2”);
<tab><tab><tab>break;
<tab>}
}