Android JNI call flow, pass parameter && return...

1. jni call flow  

edit .java -> .class -> .h(javah package name at src path) -> edit .c file -> mkdir jni under project and mv .c .h .mk to this -> edit .mk -> ndk-build -> get libxxx.so under libs/armxxx/

 

2.  java pass parameter to c and get return value (java-> c)

 

 

你可能感兴趣的:(Android JNI call flow, pass parameter && return...)