To address these issues, JNI (Java Native Interface) has
been specified and applied to integrate native code and Java
program in a single application [4][5]. It has played a major
role in developing application which needs to interact with
native code (C/C++). Android uses JNI in its NDK (Native
Development Kit) [6], which is a toolset that helps developers