static void OnCreate(bundle* extra, int type, void* user_data) {
_I("on create");
- int ret = _launchpad_plugin_prepare_app(nullptr, extra);
- if (ret != 0) {
- _E("_launchpad_plugin_prepare_app() is failed. error(%d)", ret);
- exit(EXIT_FAILURE);
- }
-
AppDefinedLoader* loader = static_cast<AppDefinedLoader*>(user_data);
tizen_base::Bundle ex = tizen_base::Bundle(extra, false, false);
std::string loader_type = ex.GetString(KEY_LOADER_TYPE);
setenv("AUL_HWACC", "none", 1);
else if (loader_type == LOADER_TYPE_HW)
setenv("AUL_HWACC", "hw", 1);
+
+ int ret = _launchpad_plugin_prepare_app(nullptr, extra);
+ if (ret != 0) {
+ _E("_launchpad_plugin_prepare_app() is failed. error(%d)", ret);
+ exit(EXIT_FAILURE);
+ }
}
static int OnLaunch(int argc, char** argv, const char* app_path,