Another way of adding NDK logs in C/C++:
#include
LOCAL_LDLIBS := -llog
void LOGI(char *szMsg)
{
__android_log_write(ANDROID_LOG_ERROR,"Tag",szMsg);
}
#include
LOCAL_LDLIBS := -llog
void LOGI(char *szMsg)
{
__android_log_write(ANDROID_LOG_ERROR,"Tag",szMsg);
}
No comments:
Post a Comment