Android JNI series detailed introduction to NDK and JNI

1. Premise

Aiming at my blank knowledge points in Android JNI and NDK technology, I will study this JNI series and record this stage of learning. The main steps of learning: Analyze from concepts and principles ---> Practice while learning ---> From easy to difficult, step by step. (Prerequisite for learning this stage: you need to have a basic foundation in Android development)

After learning the JNI-NDK development series, the goals achieved are: (ps: Adjust while learning)

1. Master the concept of JNI 6. Introduction to Native functions 11. Native calls Java

2. Construction of JNI development environment 7. JNI types and descriptors 12. Java and C++ polymorphism

3. NDK project creation 8. Principle of dynamic registration of functions 13. Native creation of objects

4. Introduction to CMake compilation tool 9. Principle of static function registration 14. Native operation array

5. ndk-build compilation tool 10. JNI call process analysis 15. Native operation Json

2. Introduction to JNI

JNI: Java Native Interface is a Java native interface that enables Java to interact with C/C++. It means that Java can call local function code written in C/C++. In turn, C/C++ can also call code in Java. .

JNI actually belongs to Java&

Guess you like

Origin blog.csdn.net/sunbinkang/article/details/132396222