Languages

Menu
Sites
Language
Accessing Contacts on Gear s2

I am developing a native wearable app that requires pulling out or inserting Contact information without having to need to phone. 

I have learned that such(contacts.h) library does not exist on Wearable development.

I am resorting to trying to find a file/system/service to manually insert into the database.

is it possible?  If so, where could I find the database? 

Is there any way to insert/access contact entry on wearable device without needing a phone?

Thanks.

 

Responses

2 Replies
Yasin Ali
var appControl = new tizen.ApplicationControl(
            "http://tizen.org/appcontrol/operation/social/add",
            null,
        "vnd.tizen.item.type/vnd.tizen.contact",
            null
        //,null
        , [new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/social/item_type", ["contact"]), new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/social/phone", ["+919899045670"]), new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/social/email", ["susan.miller@tizen.org"]), new tizen.ApplicationControlData("http://tizen.org/appcontrol/data/social/url", ["http://www.susan_miller.com"])]);
        var appControlReplyCallback = {
            onsuccess: function(data) {
                $("#data1").html(data[0].value[0]);
            },
            onfailure: function() {
                $("#data1").html('The launch application control failed');
            }
        };
        tizen.application.launchAppControl(appControl, null, function() {
            $("#result1").html("launch application control succeed");
        }, function(e) {
            $("#result1").html("launch application control failed. reason: " + e.message);
        },
            appControlReplyCallback);

Hi~,

You may try like this,

 

Joe Kang

Thank you so much for a reply!

I was wondering if there was a way to do this with native app (which should be easier in my head..), but I cannot find ANYTHING on it :(.