Subscription preference

Notification emails are sent to your Samsung account email address.

* Email : anonymous@samsung.com

  

Close

Need an example using appcontrol operarion ID "multi_share" in web apps

Forums View
Started by Newbie chootaraj , 350 Seed May 01, 2014 18:23 Replies : 2 View : 9331 Likes : 6
We want to provide the “multi_share” service in our web app(we don’t want to launch the app).
More specific we want to share multiple files from gallery app. Could you pleae let me know any example/documentation to ahieve this.
chootaraj choose Parashurama.Govind ’s reply as the Best Answer. Parashurama.Govind earned +250 SEED. May 05, 2014 15:52
Post Reply
Board View
Eager Developer Parashurama.Govind , 11630 Seed May 02, 2014 01:42 Post #1 3
Try below steps, and check 
We have added following  service in config.xml :
<tizen:app-control>
        <tizen:src name="index.html"/>
        <tizen:operation  name="http://tizen.org/appcontrol/operation/multi_share" />
        <tizen:uri name="file"/>
        <tizen:mime name="image/*"/>
    </tizen:app-control>
 
And in the index.html or javascript we have to add following code :
<script>
var reqAppControl = tizen.application.getCurrentApplication().getRequestedAppControl();
if (reqAppControl) {
    var appControl = reqAppControl.appControl;
    if (appControl.operation == "http://tizen.org/appcontrol/operation/multi_share") {
        //You can get Extra data from appControl.data[0] with key “http://tizen.org/appcontrol/data/path”
    }
}
</script>
Post Reply
Board View
Eager Developer Parashurama.Govind , 11630 Seed May 06, 2014 06:58 Post #2 3
Updating the above answer
For multi_share, you need you need to remove
<tizen:mime name="image/*"/>
this line from config.xml

For Single share, you need to change from
<tizen:operation name="http://tizen.org/appcontrol/operation/multi_share" />
to
<tizen:operation name="http://tizen.org/appcontrol/operation/share" />


Post Reply