While building on Linux Ubuntu and Mac OS X environments is possible, we will be unable to support those platforms with detailed documentation. The components to build the actual code (JDK, Eclipse+ADT and gcc) are available across multiple platforms. The recommended development environment is Microsoft Windows 7 32/64bit or Windows XP. In connect class, we are going to write the code for java recurssion and loding native library.The Qualcomm Computer Vision™ SDK supports Android OS 2.1 and above. The connect class is the interface between java and native code. So, create a java class ‘ connect‘ in src folder. 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 |