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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Contributor
tuyennguyencanada
Posts: 41
Registered: ‎07-28-2010
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...)

Please use plain text.
Developer
StevenKader
Posts: 614
Registered: ‎02-03-2010
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     BlackBerry Daily News

Feel free to press the like button to thank the user that helped you. Please mark posts as solved if you found a solution.
Please use plain text.
Developer
Blanc
Posts: 638
Registered: ‎07-02-2009

Re: BlackBerry programming - Close popup screen with a tap

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

Thanks and Regards,
PraveenGoparaju.
Please use plain text.