Languages

Menu
Sites
Language
Add a contact with preloaded information

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.

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

1 Replies
Marco Buettner
To modify a contact you have to use tizen.contact-APIs https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html With the method tizen.contact.update(contact) you can update contact details. https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html#updateidp366072