Languages

Menu
Sites
Language
TIZEN APIs

Hi,

That what i've read in the book TZEN for dummies, page 68:

 

Using the Tizen APIs

Because this application is using Tizen APIs to get information from the device, the following privileges are registered in the config.xml file:

<tizen:privilege

name=”http://tizen.org/privilege/application.read”/>

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

When these features are registered, the application can immediately access the functionality provided by the Application

and Systeminfo objects. So for example, to retrieve the current battery level on the device, the following code is used:

tizen.systeminfo.getPropertyValue(“BATTERY”,

onBatterySucess, onError);

I've opened config .js but didn't find in privileges application.read or privilege/systeminfo. But the program work. Maybe the book is for an older version?

 

 

 

 

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

Responses

5 Replies
Lakshmi Grandhi
Yes, the book is referring to Tizen old version 1.0
Marco Buettner
To your test on simulator or emulator? :) The simulator ignores config.xml but on the emulator you will get a security error or something like that without systeminfo.
John Ixion
book update https://developer.tizen.org/sites/default/files/blogs/tizenfordummiesmainchangelist.pdf
John Ixion
... and the book itself http://viewer.zmags.com/publication/61d911e3#/61d911e3/1
Joan Kethly Mancao

Those infos were really useful. Thanks buddy, hope to see more of your posts :) purchase youtube views