I want to debug a JNI application by entering a log message by logcat. What is C API?
like this:
#include & lt; Android / Log H & gt; __android_log_write (ANDROID_LOG_ERROR, "tag", "error here"); // or ANDROID_LOG_INFO, ... Add it to your makefile:
LOCAL_LDLIBS: = -L $ (SYSROOT) / usr / lib -log
Comments
Post a Comment