Native Service 创建过程学习笔记
a. 在vendor/ /common/目录下创建文件夹Native_service
b. 在此文件目录下创建.cpp 文件,并编写程序代码:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define LOG_NDEBUG 0
#define LOG_TAG "hello_world"
#include <utils/Log.h>
int main (int argc ,int *argv )
{
ALOGD("hello world");
return 0;
}
c. 在此目录下创建.mk文件,编写Android makefile 程序代码: