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
Developer
d_source
Posts: 116
Registered: ‎03-08-2011
My Device: Not Specified
Accepted Solution

Lock out other controls when in an app

Hi All,

 

Trying to figure out how you would programatically using javascript (or in the config.xml file?) lock out most/all other controls when in an app? Searched but can't find anything.

 

Thanks.

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Lock out other controls when in an app

I'm not sure exactly what you mean by "lock out other controls"... Could you expand more on what you're trying to accomplish?

 

Cheers

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Developer
d_source
Posts: 116
Registered: ‎03-08-2011
My Device: Not Specified

Re: Lock out other controls when in an app

When in an app, I would like to lock the buttons on the device so they dont do anything. Does that makes sense?

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Lock out other controls when in an app

It "can" be done on a BlackBerry Smartphone.  I do encourage you to make sure that your user isn't stranded in your app :smileyhappy:

 

You can trap the onHardwareKey event

 

http://www.blackberry.com/developers/docs/widgetapi/blackberry.system.event.html

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Developer
d_source
Posts: 116
Registered: ‎03-08-2011
My Device: Not Specified

Re: Lock out other controls when in an app

Ok so only on a smartphone, not on the playbook. Gotcha! Thanks. And yes, i have already kept it in mind not to trap thm in the app. LOL :smileyhappy: That definitely wouldn't make for a good user experience.

Please use plain text.