발간년도 : [2015]
논문정보 |
|
논문명(한글) |
[Vol.10, No.3] The Method to use Native Code(C/C++) in Android OS and Its Applications |
|
논문투고자 |
Sangmin Ahn, Keonyong Lee, Woonhyung Jung, Nakju Lett Doh |
|
논문내용 |
In general an Android application based on Java operates on DALVIK virtual machine. It is safe that an application operates on a virtual machine which means it is platform-independent. However, to be operated on a virtual machine, it takes some time for the program codes to be converted. This is slower than an operation of native codes like C because the codes are translated to machine language, which means it is platform-dependent. Also, it is restricted to access a hardware directly on a virtual machine. Many programs have been developed based on C/C++. We might save time and cost for development if we can reuse these programs without re-developing for other programming languages. On this paper, we explain how to operate a code based on C/C++ using JNI (Java Native Interface). Starting with how to call C/C++ native functions from Java classes, we introduce how codes developed with two different programming languages communicate each other. Also, we introduce a specific case using native codes on Android as an example. |
|
첨부논문 |
|
|
|
|
|