Hello,
I am quite new at developing Tizen apps for the gear watchs and there are some things which I still don't understand so I'd lke to ask for your help in this matter.
I am trying to get the language of the gear watch of the user with this code:
tizen.systeminfo.getPropertyValue("LOCALE", function(device){
if(device.language=="en_US")
console.log("English");
else
console.log("No english");
}, function(e){
console.log(JSON.stringify(e));
});
The first time I install the app on the watch and I run the app, everything runs correctly device.language has the value "en_US". However, when I close the app and I open it again and the rest of the times, I get the following error from the "console.log(JSON.stringify(e)":
{"code":-1,"name":"UnknownError","message":"Error when retrieving system setting information: -5"}
Does anybody have any idea about how to do this? Thank you.