wgt-private for updatesettings.xml

wgt-private for updatesettings.xml

BY 03 Jul 2015 Native Application Development

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

Written by