static void
file_select_result(app_control_h request, app_control_h handle, app_control_result_e result, void *user_data)
{
char *value=NULL;
int ret;
if (result == APP_CONTROL_RESULT_SUCCEEDED)
{
//app_control_add_extra_data(handle,"path",value);
char keyId[100] = {0, };
ret=app_control_get_extra_data(handle, keyId,&value);
if (ret == APP_CONTROL_ERROR_NONE)
{
dlog_print(DLOG_INFO, LOG_TAG, "[app_control_result_cb]Succeeded : Error code - %d || Path - %s",ret,value);
}
else
{
dlog_print(DLOG_ERROR, LOG_TAG, "[app_control_result_cb]Failed : Error code - %d || Path - %s",ret,value);
}
}
else
{
dlog_print(DLOG_ERROR, LOG_TAG, "[app_control_result_cb] APP_CONTROL_RESULT_FAILED. Error code: %d", result);
}
}
static void
btn_file_select_cb(void *data, Evas_Object *obj, void *event_info)
{
app_control_h app_control;
int ret;
app_control_create(&app_control);
app_control_set_operation(app_control, APP_CONTROL_OPERATION_PICK);
app_control_set_mime(app_control, "image/*");
ret = app_control_send_launch_request(app_control, file_select_result, NULL);
if ( ret == APP_CONTROL_ERROR_NONE)
{
dlog_print(DLOG_INFO, LOG_TAG, "Succeeded to launch a file manager picker app.");
}
else
{
dlog_print(DLOG_ERROR, LOG_TAG, "Failed to launch a file manager picker app. error code: %d", ret);
}
app_control_destroy(app_control);
}
I Need A Path Of Selected File From The App Control....