Handling Toshiba

Handling Toshiba

Postby geneellis » Wed May 07, 2014 2:14 pm

My app was requested for the following reason:
The app exits when hit Back key on landing page on Toshiba models.
Does anyone have any advice on how to handle Toshiba? How do we keep it from exiting? Thank you.
geneellis
 
Posts: 2
Joined: Thu Feb 20, 2014 3:50 pm

Handling Toshiba

Postby geneellis » Wed May 07, 2014 2:14 pm

My app was requested for the following reason:
The app exits when hit Back key on landing page on Toshiba models.
Does anyone have any advice on how to handle Toshiba? How do we keep it from exiting? Thank you.
geneellis
 
Posts: 2
Joined: Thu Feb 20, 2014 3:50 pm

Re: Handling Toshiba

Postby Support_STA » Wed May 07, 2014 2:14 pm

Hi Geneellis,

To handle back button on Toshiba models, you need to override evenhandler of keypress, keydown... button. Besides that, detecting Toshiba models is necessary too.

Please review bellow code that helps you to detect Toshiba models and override eventhandler:
function detectToshiba(){
var userAgent = new String(navigator.userAgent);
var detectStrIndex = userAgent.search(/TOSHIBA-DTV/i);
if (detectStrIndex != -1){
return true;
}
return false;
}

function keydownhandler(e)
{
switch (e.keyCode)
{
...
case VK_BACK:
// Your code here
...
}
}

Thanks and regards,
STA QA
Support_STA
 
Posts: 136
Joined: Fri Aug 09, 2013 3:56 am

Re: Handling Toshiba

Postby Support_STA » Wed May 21, 2014 6:57 pm

Hi Geneellis,

To handle back button on Toshiba models, you need to override evenhandler of keypress, keydown... button. Besides that, detecting Toshiba models is necessary too.

Please review bellow code that helps you to detect Toshiba models and override eventhandler:
function detectToshiba(){
var userAgent = new String(navigator.userAgent);
var detectStrIndex = userAgent.search(/TOSHIBA-DTV/i);
if (detectStrIndex != -1){
return true;
}
return false;
}

function keydownhandler(e)
{
switch (e.keyCode)
{
...
case VK_BACK:
// Your code here
...
}
}

Thanks and regards,
STA QA
Support_STA
 
Posts: 136
Joined: Fri Aug 09, 2013 3:56 am


Return to App development questions



cron