摘要: 1、导入so文件可以在项目的任意位置。static {System.loadLibrary("TestJNI");}2、定义native方法的位置必须是生成该so的项目中包下面的那个类,可以将该类打包成一个jar文件,就可以在其他的项目或包中调用so中定义的native方法了。public static native String getPath(); 阅读全文
posted @ 2012-10-22 11:18 thisAndroid 阅读(159) 评论(0) 推荐(0) 编辑