<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/$${WidgetID|"WidgetID"}" version="1.0" viewmodes="windowed">
<tizen:application id="$@{APPLICATIONID()}" required_version="1.0"/>
<content src="index.html"/>
- <feature name="http://tizen.org/api/application" required="true"/>
- <feature name="http://tizen.org/api/tizen" required="true"/>
<icon src="icon.png"/>
<name>$${WidgetID|"WidgetID"}</name>
</widget>
//Initialize function
var init = function () {
$('div[data-role="page"]:first .ui-btn-back').bind("click", function(event) {
- tizen.application.exit();
+ // TODO:: back-button exit code
});
// TODO:: Do your initialization job
console.log("init() called");