Recent Changes - Search:

Site.SideBar

HelloWorld


hello.c


#include <stdio.h>

int main(int argc, char **argv)
{
  printf("Hello, world!\n");
  return 0;
}

Makefile


all:
	arm-none-linux-gnueabi-gcc -static -o hello hello.c


Commands:


Emulator:
emulator -avd myavd
adb push hello /data/misc/hello #emulator
adb shell chmod 777 /data/misc/hello
adb shell /data/misc/hello

Actual Device:
adb push hello /sdcard/data/misc/hello
adb push hello /sdcard/jake/
# Permission denied on actual device!
Edit - History - Print - Recent Changes - Search
Page last modified on December 25, 2011, at 09:03 PM