How to add logs in android C/C++ files:
#define LOG_TAG XXX // its the tag u can see in the logcat.
#include
LOGE("printing log %s,%d",__FILE__,__LINE__);
In Android.mk, Add below line :
LOCAL_SHARED_LIBRARIES := \
libutils \
#define LOG_TAG XXX // its the tag u can see in the logcat.
#include
LOGE("printing log %s,%d",__FILE__,__LINE__);
In Android.mk, Add below line :
LOCAL_SHARED_LIBRARIES := \
libutils \
No comments:
Post a Comment