Description:http://talent.baidu.com/external/baidu/index.html#/jobDetail/2/1237247043
Step-by-step debugging method for the implementation of JNI (c/C + +) in Android Studio-standard configuration tutorial
NDK Debug Method
Image processing Code Optimization: Example
single-step debugging and log printing for JNI programs in Android studio
JNI/NDK Development Guide (10)--jni Local references, global references, and weak global references
NDK Features:
1. Davek virtual machine Set upper limit on application memory request, exceeding memory overflow, native method memory free malloc
2. Android Local reference table
Common errors in NDK:
1. Null pointer:
2. (char*) malloc (len+1), when the memory size is requested, the last byte is 0, which indicates the end of the string.
3. Dynamic memory application should be free in time.
4. String catenate, cross-stitching of strings, msg = strcat (msg, "new string"), MSG memory is large enough to accommodate itself and the length of the append.
Android SDK NDK Development Summary