1:包含標頭檔: #include <cutils/log.h>. 2:定義宏LOG_TAG. #define LOG_TAG "MY LOG TAG". 3:連結log對應的.so庫. 在Android.mk檔中加入如下語句:.
確定! 回上一頁