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

Java Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums on April 1st. BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Posts: 41
Registered: ‎07-28-2010
My Device: Not Specified
Accepted Solution

BlackBerry programming - Close popup screen with a tap

I have a popup screen (a small screen) stays on top of a main screen.


This popup screen has a button, the button will close the screen when clicked.
Do you know how to close this popup screen when users tapping on the phone, outside the area that the popup screen cover (without clicking the button)?


FYI: app is designed to run on touch phone only (BB Storm, BB Torch...)

Posts: 656
Registered: ‎02-03-2010
My Device: Z10 LE
My Carrier: Rogers

Re: BlackBerry programming - Close popup screen with a tap

Just to be clear, you want the popup to close if the user touches anywhere on the screen?  Why not have them touch the button that closes the screen?

Steven Kader at JaredCo
   Follow me on Twitter    |     Mipixi.com :  Web App for Photo Sharing
Posts: 638
Registered: ‎07-02-2009
My Device: Not Specified

Re: BlackBerry programming - Close popup screen with a tap

try to override public boolean touchEvent(TouchEvent event) in your popupscreen.

Thanks and Regards,