JNI 调试打印信息

Android.mk

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    := hello-jni
LOCAL_SRC_FILES := hello-jni.c
LOCAL_LDLIBS += -L$(SYSROOT)/usr/lib -llog

include $(BUILD_SHARED_LIBRARY) 

JNI 文件夹下  hello-jni.c

#include <android/log.h>

__android_log_print(ANDROID_LOG_INFO, "Hello", "size int -----   ---");

posted on 2011-02-14 22:56  陆晓峰  阅读(1946)  评论(0编辑  收藏  举报

导航