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

Native Development

Trusted Contributor
Posts: 104
Registered: ‎02-05-2012
My Device: Bold 9900 (primary) Z10 LE (secondary)
My Carrier: Singtel
Accepted Solution

close button can't kill application in thumbnail mode


I am already finished the porting of SDL-based Jooleem game on BB10. Now there is a problem:

I can quit from game quit page but can't kill application through X button when application in thumbnail mode. Even the application window disappears the game sound still goes on and the application icon fades can't be uninstalled. 


I have searched the forum for the way removing the X button but the result is depressed. So how can I catch the X button event and call the game original quit function? Thanks.

Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: close button can't kill application in thumbnail mode

its a glitch.
if you have it connected in Momentics you can use the target navigator to deliver the SIGTERM signal to your app. If that does not help try SIGKILL.
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: close button can't kill application in thumbnail mode

Do you have the app integrated with the BPS event system in any way? I would assume that has to have been done in some fashion for it to work at all. If so, you'll be using bps_get_event() somewhere, and want to request navigator events (https://developer.blackberry.com/native/reference/bb10/com.qnx.doc.bps.lib_ref/com.qnx.doc.bps.lib_r... and listen for the NAVIGATOR_EXIT event: https://developer.blackberry.com/native/reference/bb10/com.qnx.doc.bps.lib_ref/com.qnx.doc.bps.lib_r...

If that doesn't help, you may need to describe more about the environment you're using, or investigate yourself how it hooks into the system. Maybe they've already provided that event in some fashion through the framework you're using.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!