http://blog.blackwhale.at/2009/08/android-ndk-logging/
So after the first few mini steps into the NDK the first thing you will probably notice missing, is a way to retrieve log messages through logcat. To be able to do this you need to do two things:
1. Include log.h in your source files
2. Be sure to add llog to your LOCAL_LDLIBS in the Android.mk file of your NDK code
Now you are ready to log to logcat from you NDK code, simply via
Further loglevels are
all the other stuff you can look up under
'Android' 카테고리의 다른 글
timegm (0) | 2013.10.08 |
---|---|
build/core/java.mk:9: *** libcore: Target java module does not define any source or resource files. Stop. (0) | 2013.10.08 |
hello-gdbserver: a debuggable JNI example for android (0) | 2013.10.08 |
running activity with adb (0) | 2013.10.08 |
browser apk (0) | 2013.10.08 |