摘要: jni.c中注册中int register_android_boa(JNIEnv *env){ jclass clazz; static const char* const kClassName = "com/lxl/ledClass"; //命名的类 /* look up the class */... 阅读全文
posted @ 2014-04-27 21:42 luxiaolai 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 一、编写JNI模块当安装好NDK编译环境后,会在它的目录下找到sample目录,它里面有一些例子,可以参考这些例子来写我们自已的模块。1、在/home/android/文件夹下,新建“ledjni”文件夹。2、/ledjni/jni/目录下,新建“led-jni.c”led-jni.c文件[html... 阅读全文
posted @ 2014-04-27 21:18 luxiaolai 阅读(261) 评论(0) 推荐(0) 编辑