LOCAL_LDLIBS += -llog
add in your .c file
#include <android/log.h> #define LOG_TAG "System.out" #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__) #define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
Now you can show your log info in this .c file
LOGD("%s","hahahaha1");
沒有留言:
張貼留言