摘要: #include <jni.h> JNIEXPORT jstring JNICALL Java_com_example_hellojni_MainActivity_helloFromC (JNIEnv * env, jobject obj){ return (*env)->NewStringUTF( 阅读全文
posted @ 2016-09-05 22:42 达哥的博客 阅读(675) 评论(0) 推荐(0) 编辑
摘要: * java.lang.UnsatisfiedLinkError: Native method not found: 本地方法没有找到 * 本地函数名写错 * 忘记加载.so文件 没有调用System.loadlibrary * findLibrary returned null * System. 阅读全文
posted @ 2016-09-05 18:24 达哥的博客 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 指针只需要记住一点: 指针指向的是对象本身还是对象所指向的值。 例如: int** point; int* point1; int i =123; point1=&i; point= &point1; 假设i的地址为0x28ff00 则打印**point为123(即**point指向point1所指 阅读全文
posted @ 2016-09-05 10:05 达哥的博客 阅读(228) 评论(0) 推荐(0) 编辑