Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
TopBananas
Posts: 5
Registered: ‎06-17-2011
My Device: Torch
My Carrier: o2

Trapping Back Event on Torch / OS 6 in widget exits app

Hi

I am not sure what I am doing wrong.

 

On a curve running OS 5 my code works, but on a Torch OS 6 is does not.

 

I am handling the back button event, my code fires but on a Torch the app just exits.

 

I have experiemented and found if my back event handle code just does an alert the alert runs and the app does not crash. But if I try to do window.location.href='index.htm' the app exits.

 

When this happens The HTML unload event does not fire - well I cant trap it and the Blackberry On Exit event wont handle either.

 

I have no idea what to do. The simulator does it as well as the device. I can not find any work around despite searching.

 

This coupled with my other OS 6 issue relating to white flashes my app looks pretty poor on a Torch!

 

Any help or pointers much appriecited. 

 

Please use plain text.
Contributor
ananddrs
Posts: 14
Registered: ‎10-08-2010
My Device: 9700
My Carrier: Rogers

Re: Trapping Back Event on Torch / OS 6 in widget exits app

I am also in a similar situation. In my case it works on 9700 and 9780 (OS 6) but not Torch OS 6. I'm using Eclipse with webwork sdk 2.0.
Please use plain text.
Contributor
peacemoon
Posts: 32
Registered: ‎12-10-2010
My Device: Not Specified

Re: Trapping Back Event on Torch / OS 6 in widget exits app

i have the same problem.

If you have any solution for this, could you please share with us?

Thanks
Please use plain text.
BlackBerry Development Advisor (Retired)
jeffheifetz
Posts: 518
Registered: ‎07-18-2011
My Device: Bold
My Carrier: Rogers

Re: Trapping Back Event on Torch / OS 6 in widget exits app

So just to confirm, you guys can trap the back events on 5.0 devices and 6.0 devices other than the Torch.

Can I just  get some quick info?

 

What version of thwe SDK are you using?

What version of 6.0 is the Torch running?



1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the button below the post(s)
Please use plain text.
BlackBerry Development Advisor (Retired)
jeffheifetz
Posts: 518
Registered: ‎07-18-2011
My Device: Bold
My Carrier: Rogers

Re: Trapping Back Event on Torch / OS 6 in widget exits app

As per this post - http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Blackberry-Webworks-and-quot-Har...

 

I was able to trap the event. Are you guys using different versions of the OS, or using special libraries?



1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the button below the post(s)
Please use plain text.