After I developed the Tizen application (I), I tried to implement more Tizen API-related functions after I made some basic customization and modifications to the testcontact application. in https://developer.tizen.org/documentation, the functions, functions, and call methods of various tizen Web APIs are described in detail.
Take systeminfo as an Example
First, add some related interface information in config. xml.
Then, according to the example in the help document, some callback functions are used in main. js to obtain information about the runtime environment.
Function onSuccessDisplayCallback (Display ){
Confirm ("The Display resolutionWidth is" + Display. resolutionWidth );
}
Function onErrorDisplayCallback (error ){
Confirm ("An error occurred" + error. message );
}
Function lihaotest (){
Tizen. systeminfo. getPropertyValue ("Display", onSuccessDisplayCallback, onErrorDisplayCallback );
}
The result is displayed.
If you are interested, you can use https://developer.tizen.org/documentationto try more applications.