Languages

Menu
Sites
Language
wgt-private for updatesettings.xml

Hello

We are developing samsung gear application which have Basic UI settings through settings.xml, but when we go to read updatesettings.xml from wgt-private folder every time we got NotFoundError. this our code

    function readUpdatedSetting(doSetting) {
        if (!doSetting)
            return;

        var path = "wgt-private/updatedsettings.xml";
        tizen.filesystem.resolve(path, function (file) {
            file.readAsText(function (text) {
                alert(text);
                $('#test').html(text);
                doSetting((new DOMParser()).parseFromString(text, "text/xml"));
            });
            file.parent.deleteFile(path);
        },function(e){
            console.log("Error" + e.message);
        }, "rw");
    }
    function updateSettings(xmlDoc) {
    		
    }
    setInterval(function () {
        readUpdatedSetting(updateSettings)
    }, 5000)

so is there any solution to read updatesettings.xml

Regards

Responses

1 Replies
daniel kim

Hi,

I could see same message and found below log in Gear S.

 ERROR / WRT_PLUGINS/TIZEN ( 5787 : 5802 ) : Node.cpp: resolve(127) > File: /opt/usr/apps/bpiQsis4Xn/data/updatedsettings.xml error no2

 ERROR / WRT_PLUGINS/TIZEN ( 5787 : 5802 ) : Manager.cpp: OnRequestReceived(441) > Exception: Node does not exist

Looks like that Gear manager is trying to find a peer agent in my case.

Regards