Languages

Menu
Sites
Language
How to show file select widget/dialog?

I want to show an widget which can select some music on device, how to code this?

Thanks.

View Selected Answer

Responses

3 Replies
Mark as answer
Alex Dem

Hi,
Maybe you could use App Controls with operation  "http://tizen.org/appcontrol/operation/pick"

For images your code could be next:

    app_control_h app_control;
    app_control_create(&app_control);
    app_control_set_operation(app_control, APP_CONTROL_OPERATION_PICK);
    app_control_set_mime(app_control, "image/jpg");
    app_control_send_launch_request(app_control, NULL, NULL);
    app_control_destroy(app_control);

please, don't forget privilege:http://tizen.org/privilege/appmanager.launch

Try to look also here
https://developer.tizen.org/dev-guide/2.3.0/org.tizen.guides/html/native/app/application_n.htm#app_controls

Alexey.

roc john

I got APP_CONTROL_ERROR_APP_NOT_FOUND error when calling app_control_send_launch_request() on emulator.

Perhaps i have to test on real device?

Thanks~

Alex Dem

Hi,
Yes , because of there is no appropriate app to resolve application control on emulator.
also fyI: for audio you could use "audio/*" mime.
Alexey.