In connect class, we are going to write the code for java recurssion and loding native library. The connect class is the interface between java and native code. You could go through the manual installation steps. So, create a java class ‘ connect‘ in src folder. Android Studio Android SDK Eclipse IDE ADT and CDT plugin for Eclipse Android NDK OpenCV4Android SDK. ie, creating a java class for calling the native code in C language. The first two steps for developing android application using NDK are completed. We will be placing the makefile, c header file and c source code in jni folder. Now create a folder in the name ‘ jni‘ inside the project. Let’s give the android application a name – ‘ ndk‘. Launch ‘ New Android Application‘ wizard. Let’s see the performance of NDK and SDK. We know that recursion in java might end up in ‘stackOverflowError’ in most of the cases. We are going to test the performance of NDK and SDK on the basis of how much time will it take for producing the output for same recursion function. Let’s create an android application using NDK to test the performance of NDK over SDK.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |