Languages

Menu
Sites
Language
Accessing system info properties on 2.1 SDK

Hi,

 

In 2.0 SDK, i could access to system info properties with : 

tizen.systeminfo.getPropertyValue("DISPLAY", onSuccessCallback, onErrorCallback);

With the following privileges in the config.xml :

<tizen:privilege name="http://tizen.org/privilege/tizen"/>
<tizen:privilege name="http://tizen.org/privilege/systeminfo"/>

But with the new 2.1 it says "Uncaught TypeError: Cannot call method 'getPropertyValue' of undefined"

It looks like the new SDK changed the way privileges are named but I couldn't figure what privilege to use. I tried the system info sample, but it looks like samsung doesn't not have updated their samples to the new SDK cause I get the same error.

Any idea of the new privileges names to use ?

Regards

 

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

Responses

4 Replies
Vineet Tiwari
Hi Jipe, Please use getSystemProperty("DISPLAY", onDisplaySuccess) method for SDK 2.1. U can refer an example sample web app in SDK 2.1 :New->Tizen Web Project->Sample->SystemInfo Thanks, Vineet Tiwari
Jean-Philippe Vignolo
It's more or less the same as if I look in 2.1 systeminfo sample i see in main.js : function getSystemProperty(property, onSuccess) { try { tizen.systeminfo.getPropertyValue(property, onSuccess, onError); } catch (e) { alert("Exception: " + e.message); } } In fact it looks like it's working in the simulator and not in web simulator... In 2.0 it was working on both.
Jean-Philippe Vignolo
I meant "it's working in the emulator and not in web simulator"
Vineet Tiwari
you cannot run mobile related info like events, system info in web simulator web simulator works only for web related application.