语言

Menu
Sites
Language
Tizen Nacl TV app -exit on return

Hi, 

On a nacl TV app , how do i make the return button on remote exit/terminate the app ?

 I have tried adding this command to code : 


 

document.getElementById("yes_exit_button").addEventListener('tizenhwkey', function(e) {
    if(e.keyName == "back")
        tizen.application.getCurrentApplication().exit();
});

 

but it doesnt work on emulator / simulator...return button does nothing.

works only for web applications...

 

thanks

 

编辑者为: Dima S 06 5月, 2017

响应

1 回复
Armaan-Ul- Islam

p { margin-bottom: 0.1in; line-height: 120%; }a:link { } These two Guides shed some light on the topic:

http://developer.samsung.com/tv/develop/guides/user-interaction/remote-controller

http://developer.samsung.com/tv/develop/api-references/tizen-web-device-api-references/tvinputdevice-api/

 

 

Though not exactly entitled for Nacl app. I would suggest that, you may post your issue on Samsung TV Forum

http://developer.samsung.com/forum/?topCtgy=06

Developers on the specific domain may share their experiences with you there.