Languages

Menu
Sites
Language
How to get an image from the gallery for using it in your web app? Gear S3

How to get an image from the gallery for using it in your web app? Gear S3
I'm looking for a way how to open the gallery and take an image for using it in my app.

Edited by: Anonymous on 03 May, 2019

Responses

1 Replies
Iqbal Hossain

hi, To retrieve a specific type of media file, use the http://tizen.org/appcontrol/operation/pick operation. To specify various details, refer to the extras defined below.

var appControl = new tizen.ApplicationControl('http://tizen.org/appcontrol/operation/pick',
                                              null, 'MIME_Type', null, null, 'GROUP');

tizen.application.launchAppControl(appControl, null, function() {
    console.log('launch application control succeed');
}, function(e) {
    console.log('launch application control failed. reason: ' + e.message);
}, null);

MIME Type (Optional)

  • audio/*
  • image/*
  • video/*

For more check on Retrieving a Media File section of https://developer.tizen.org/development/guides/web-application/application-management/application-information-and-controls/application-controls/common-application-controls