Add a contact with preloaded information

Add a contact with preloaded information

BY 29 Jul 2013 Web Application Development

Hi,

I would like to add a contact with some preloaded information like phone number, email address… AND the adress of the contact.

I found information here :

https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.appprogramming%2Fhtml%2Fguide%2Fapp%2Fappcontrol_contact.htm

These keys are usefull :

http://tizen.org/appcontrol/data/social/item_type

http://tizen.org/appcontrol/data/social/phone

http://tizen.org/appcontrol/data/social/email

 

But I can’t find how to modify the contact’s adress which is very important for me…

Here is my code :

var appControl = new tizen.ApplicationControl(“http://tizen.org/appcontrol/operation/social/add”,
            null,
            “vnd.tizen.item.type/vnd.tizen.contact”,
            null,
            [
             new tizen.ApplicationControlData(“http://tizen.org/appcontrol/data/social/item_type”,[“contact”]),

             new tizen.ApplicationControlData(“http://tizen.org/appcontrol/data/social/phone”, [“number”]),

             new tizen.ApplicationControlData(“http://tizen.org/appcontrol/data/social/email”,[“mail”])
            ]
);

tizen.application.launchAppControl(appControl, null,
            function(){console.log(“launch service succeeded”);},
            function(e){console.log(“launch service failed. Reason: ” + e.name);});

 

Can someone help me please? Is there a special key or an other way to reach my goal?

Thanks in advance.

Written by