Android alert display functionality using JNI

This commit is contained in:
saschawillems 2018-04-30 22:24:45 +02:00
parent 1227f1e7f4
commit 5056563f5d
5 changed files with 64 additions and 3 deletions

View file

@ -268,8 +268,9 @@ namespace vks
if (!errorModeSilent) {
MessageBox(NULL, message.c_str(), NULL, MB_OK | MB_ICONERROR);
}
#elif defined(__ANDROID__)
LOGE("Fatal error: %s", message.c_str());
#elif defined(__ANDROID__)
LOGE("Fatal error: %s", message.c_str());
vks::android::showAlert(message.c_str());
#endif
std::cerr << message << "\n";
exit(exitCode);