android_touch icon indicating copy to clipboard operation
android_touch copied to clipboard

Logging on Device Console Fails

Open GitMAGI opened this issue 6 years ago • 0 comments

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;

GitMAGI avatar Aug 20 '19 11:08 GitMAGI