debug

Log:

import      android.util.Log;

Log.i(“MyActivity”, “Call back been called”);

 

NDK :log

LOCAL_LDLIBS += -L$(SYSROOT)/usr/lib -llog

#include <android/log.h>

__android_log_print(ANDROID_LOG_INFO, “JNIMsg”, “Get Param: %s From Java”, c_msg);

NDK: Debut mode   ndk-build  “NDK_DEBUG = 1”

http://tools.android.com/recent/usingthendkplugin

NDK8 “ndk-build clean” error fix: https://code.google.com/p/android/issues/detail?id=59228

A NDK GDB guide