diff options
-rw-r--r-- | Android.mk | 1 | ||||
-rw-r--r-- | FaceDetector_jni.cpp | 5 |
2 files changed, 2 insertions, 4 deletions
@@ -114,7 +114,6 @@ LOCAL_C_INCLUDES += \ $(LOCAL_PATH)/unix/src LOCAL_SHARED_LIBRARIES := \ - libandroid_runtime \ libnativehelper \ libutils \ liblog \ diff --git a/FaceDetector_jni.cpp b/FaceDetector_jni.cpp index 9a32ceb..3744c49 100644 --- a/FaceDetector_jni.cpp +++ b/FaceDetector_jni.cpp @@ -14,6 +14,7 @@ * limitations under the License. */ +#include <assert.h> #include <stdlib.h> #include <stdio.h> #include <fcntl.h> @@ -27,7 +28,6 @@ #include "jni.h" #include "JNIHelp.h" -#include "android_runtime/AndroidRuntime.h" using namespace android; @@ -288,8 +288,7 @@ static JNINativeMethod methods[] = { int register_android_media_FaceDetector(JNIEnv *_env) { - return android::AndroidRuntime::registerNativeMethods( - _env, classPathName, methods, NELEM(methods)); + return jniRegisterNativeMethods(_env, classPathName, methods, NELEM(methods)); } // --------------------------------------------------------------------------- |