I’m trying to create a web-application using Tizen SDK. When I launch
the app everything is fine but when I press a “Back” button on emulator
nothing happens and I see a message 55435/js/main.js:9:ReferenceError: Can't find variable: tizen I looked at main.js and there’s a code:
//Initialize function
var init = function () {
// TODO:: Do your initialization job
console.log("init() called");
// add eventListener for tizenhwkey
document.addEventListener('tizenhwkey', function(e) {
if(e.keyName == "back") {
tizen.application.getCurrentApplication().exit(); // HERE IS THE ERROR
}
});
};
$(document).bind('pageinit', init);
A simple alert(window.tizen) said that it is undefined so I thought that some js file wasn’t attached to project. Here are scripts that was generated by Tizen SDK:
Tizen SDK: Can’t find variable: tizen
I’m trying to create a web-application using Tizen SDK. When I launch
the app everything is fine but when I press a “Back” button on emulator
nothing happens and I see a message
55435/js/main.js:9:ReferenceError: Can't find variable: tizenI looked at main.js and there’s a code://Initialize function var init = function () { // TODO:: Do your initialization job console.log("init() called"); // add eventListener for tizenhwkey document.addEventListener('tizenhwkey', function(e) { if(e.keyName == "back") { tizen.application.getCurrentApplication().exit(); // HERE IS THE ERROR } }); }; $(document).bind('pageinit', init);A simple
alert(window.tizen)said that it isundefinedso I thought that some js file wasn’t attached to project. Here are scripts that was generated by Tizen SDK:I think some script should be added but I don’t know which one.
Update: I’m using Tizen SDK 2.2 installed on Linux Mint 15.
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio