Introduction to jni

Why learn jni, or what are the benefits of jni

First of all, jni is to realize the mutual call between java and local voice

In android, it is the mutual call between java and c or c++

benefit! !

1. Using jni can make java code to operate hardware, such as manual control, etc.

2. c runs directly at the bottom layer, and the operation efficiency is high. For example, the open source library such as face recognition needs to be called by jni to solve the efficiency problem.

3. Use jni to call excellent open source libraries written in various c voices

4. For safety reasons, because the java language decompilation is relatively simple, but the c language decompilation is more difficult

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325343946&siteId=291194637