X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-demo.git;a=blobdiff_plain;f=build%2Fandroid%2Fapp%2Fsrc%2Fmain%2Fcpp%2Fmain.cpp;h=6ae80c1a4fa91d49346b7dee8efb351646b3c504;hp=0ba207a61288208ca4f5fcc0d0d5dd64fb0ebde8;hb=8fa6f63e5d7c6054d8d45ca8b37525567872ae54;hpb=9b6fc4d82cb522d4254ba2446b90deda6d0c4caa diff --git a/build/android/app/src/main/cpp/main.cpp b/build/android/app/src/main/cpp/main.cpp index 0ba207a..6ae80c1 100644 --- a/build/android/app/src/main/cpp/main.cpp +++ b/build/android/app/src/main/cpp/main.cpp @@ -29,8 +29,11 @@ #include // from android_native_app_glue.c + +#define TAG "dalidemo" +#define LOGE(...) ((void)__android_log_print(ANDROID_LOG_ERROR, TAG, ##__VA_ARGS__)) #ifndef NDEBUG -#define LOGV(...) ((void)__android_log_print(ANDROID_LOG_VERBOSE, "dalidemo", __VA_ARGS__)) +#define LOGV(...) ((void)__android_log_print(ANDROID_LOG_VERBOSE, TAG, ##__VA_ARGS__)) #else #define LOGV(...) ((void)0) #endif @@ -153,6 +156,7 @@ void android_main(struct android_app* state) LOGV("android_main() >>"); std::string filesDir = state->activity->internalDataPath; + LOGV("filesDir=%s", filesDir.c_str() ); std::string fontconfigPath = filesDir + "/fonts"; setenv("FONTCONFIG_PATH", fontconfigPath.c_str(), 1); @@ -198,6 +202,9 @@ void android_main(struct android_app* state) void* handle = dlopen(libpath.c_str(), RTLD_LAZY); if(!handle) { + int err = errno; + LOGE("Err=%d Fail to open lib %s", err, libpath.c_str()); + status = err; std::exit(status); }