int j = 0;
char buffer[100] = {0,};
- char *dbPath = "/opt/usr/media/selectedimages.eet";
+ char *data_path = app_get_data_path();
+ char dbPath[1024] = { 0, };
+ if (data_path) {
+ snprintf(dbPath, 1024, "%s%s", data_path, "selectedimages.eet");
+ free(data_path);
+ }
Eet_File *fp = NULL;
app_control_get_extra_data_array(reply, APP_CONTROL_DATA_PATH,
return -1;
}
- char *dbPath = "/opt/usr/media/selectedimages.eet";
+ char *data_path = app_get_data_path();
+ char dbPath[1024] = { 0, };
+ if (data_path) {
+ snprintf(dbPath, 1024, "%s%s", data_path, "selectedimages.eet");
+ free(data_path);
+ }
Eet_File *fp = NULL;
fp = eet_open(dbPath, EET_FILE_MODE_READ);
}
free(widget_data);
- remove("/opt/usr/media/selectedimages.eet");
+ char *data_path = app_get_data_path();
+ if (data_path) {
+ char dbPath[1024] = { 0, };
+
+ snprintf(dbPath, 1024, "%s%s", data_path, "selectedimages.eet");
+ remove(dbPath);
+ free(data_path);
+ }
return WIDGET_ERROR_NONE;
}