Add helloworld(native c):
1. # mkdir $(YOUR_ANDROID)/development/hello
2. # vim hello.c:
#include
int main()
{
printf("Hello World!
");
return 0;
}
3.# vim Android.mk
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:=
hello.c
LOCAL_MODULE := helloworld
include $(BUILD_EXECUTABLE)
4.make helloworld
阅读(339) | 评论(0) | 转发(0) |