zoukankan      html  css  js  c++  java
  • Just learn how to use the JNI

    JNITestProject

    Just learn how to use the JNI

    Refer :

    1. ant usage         http://lmbj.net/blog/ant-build-android-project/
    2. tutorial Android JNI  http://blog.edwards-research.com/2012/04/tutorial-android-jni/
    

    Step:

    1. reference <<tutorial Android JNI>> to create java wrapper class and .so library in project_one
    2. create the .jar file just include java wrapper class 
    

    Usage:

    1. add .jar file into target project's "libs" path
    2. add "armeabi" folder(under project_one's libs folder) into target project "libs" path
    3. refresh the project
    

    Other:

    You can just add the java wrapper class into your project without creating a ".jar" file. 
    As for me, that will be good, because you can easily found the prototype of the function and the description 
    of the class and functions. 
    What's more you also don't need to add the "armeabi" folder into the target project's "libs" path, 
    you can just put the ".so" file into Android system path: /system/lib/. This need root your Android.
    This is the mount example:
    mount -o remount,rw -t ext4 /dev/sda1 /system/
  • 相关阅读:
    用纯css画个三角形
    宝塔安装
    js判断浏览器版本
    JS打开url的几种方法
    java加密算法
    Mysql数据库多对多关系未建新表
    数据库唯一性约束异常插入处理
    HTML5中localStorage的使用
    软件设计师14-UML建模
    数据库设计流程
  • 原文地址:https://www.cnblogs.com/riskyer/p/3281293.html
Copyright © 2011-2022 走看看