Sunday, February 21, 2010

Android Development Tips

Logging

http://groups.google.com/group/android-ndk/browse_thread/thread/d6c5e8f25f1ee543

#include <android/log.h> 
__android_log_print(ANDROID_LOG_INFO, "your_tag", "fmt string", parameter1, parameter2);

Then you will see it in logcat output.

Read file build/platforms/android-1.5/common/include/android/log.h in ndk for more info.

No comments: