JNI
-
The Java Native InterfaceAndroid 2010. 8. 3. 10:36
Chapter 7 The Invocation Interface This chapter illustrates how you can embed a Java virtual machine in your native application. A Java virtual machine implementation is typically shipped as a native library. Native applications can link against this library and use the invocation interface to load the Java virtual machine. Indeed, the standard launcher command (java) in JDK or Java 2 SDK releas..
-
Native Library 따라가보기Android 2010. 7. 15. 10:35
안드로이드에서 GPS 를 enable 시키면, 아래에 나와있는 GpsLocationProvider.java 함수에 있는 enable를 호출하게 된다. ==================================================== cupcake-work/src/frameworks/base/location/java/com/android/internal/location/GpsLocationProvider.java ==================================================== if (Config.LOGD) Log.d(TAG, "enable") { if (mEnabled) return; mEnabled = native_init();//native_inti?init(..
-
안드로이드 네이티브 라이브러리ⅠAndroid 2010. 7. 14. 20:10
이번 컬럼에서는 기존에 C/C++ 로 개발한 코드가 안드로이드 플랫폼에서 어떻게 동작하는지 안드로이드 플랫폼 구조를 통해 알아보고, Java 응용프로그램과 연동하기 위한 다양한 방법을 소개한다. 또 C/C++ 코드를 안드로이드 플랫폼에서 동작하는 바이너리로 빌드할 수 있는 툴체인 안드로이드 NDK에 대해 알아보고 간단한 사용법에 대해 알아보도록 하겠다. 이상욱 bumwoogi@gmail.com|새로운 기술을 배우는 것을 좋아하고 다방면에 관심이 많은 오지랍쟁이 개발자. 얼마전까지 무인잠수함을 만드는 것을 계획하였으나 도중하차 하였고, 지금은 전 인류에 공헌할 대단한 소프트웨어를 만드는 것을 꿈꾸고 있다. 이번 컬럼은 가상의 시나리오를 통해 실제 프로젝트 진행 중에 벌어질 수 있는 문제상황을 제시하고 동시..