It defines a way for the byte code that is generated by the Android to communicate with the native code. JNI or Java Native Interface is the interface between your Java/Kotlin and the C/C++ code. Is it possible to use Java code from C++ and vice-versa? How will the Java code communicate with the native code? The communication is done by JNI. What if you want to use both Java/Kotlin and native language in your application? This is the most used case. Also, it becomes an easier task for them to use their C or C++ code in the Android application. Due to the speed factor, most of the game developers use C or C++ for writing the code for their games. So, whenever you want to make some high-performance applications for great speed or want to use some preexisting code written in some native language then you can use C or C++. You can use the code that you wrote while learning C or C++ or the codes of other developers in your Android application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |