android_touch
android_touch copied to clipboard
Logging on Device Console Fails
Into the function dispatchMessage of the file Logging.cpp there is the following directive
void android_touch::Logging::dispatchMessage(std::string message) {
#ifdef ANDROID
__android_log_print(ANDROID_LOG_DEBUG, "android_touch", "%s", message.c_str());
#else
std::cout << "[android_touch] : " << message << std::endl;
#endif
}
This doesen't work on my device. I compiled on the platform android-23 and my abi is armeabi-v7a.
I solved the problem commenting the directive and using just the following:
std::cout << "[android_touch] : " << message << std::endl;