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

Adobe AIR Development

Reply
Contributor
Posts: 27
Registered: ‎02-17-2013
My Device: Developer-BB10
My Carrier: ---
Accepted Solution

Exit button for bb10 app

is it essential to have an exit button in the app for bb10?if so,can you please help me with it?i tried fscommand but it shows an error.
(i am using actionscript)
Developer
Posts: 323
Registered: ‎05-07-2009
My Device: BlackBerry Z10, PlayBook, 9900
My Carrier: Telus

Re: Exit button for bb10 app

There is some simple code to exit the application (I'm going to look it up now) but as an aside you don't actually need to provide the option as users can exit any application by swiping up and the clicking the "x" on the active frame (minimized app).

PlayBook Apps: DataMine, Dots + Boxes, 5 Marbles
BlackBerry SmartPhone Apps: 5 Marbles Soon: **** (D.Z.A), ****Quest, **** Challenge, VaultCracker, DevBrowser, Radial****
Developer
Posts: 323
Registered: ‎05-07-2009
My Device: BlackBerry Z10, PlayBook, 9900
My Carrier: Telus

Re: Exit button for bb10 app

I think this is the code you need.

NativeApplication.nativeApplication.exit();

PlayBook Apps: DataMine, Dots + Boxes, 5 Marbles
BlackBerry SmartPhone Apps: 5 Marbles Soon: **** (D.Z.A), ****Quest, **** Challenge, VaultCracker, DevBrowser, Radial****
Contributor
Posts: 27
Registered: ‎02-17-2013
My Device: Developer-BB10
My Carrier: ---

Re: Exit button for bb10 app

I tried that one too.But it doesn't work.If I click on the Exit button,nothing happens.But its a relief to hear that it may not be necessary to include an exit button.

 

There may not be a chance that my app gets rejected because of not including an exit button, is there?

Developer
Posts: 323
Registered: ‎05-07-2009
My Device: BlackBerry Z10, PlayBook, 9900
My Carrier: Telus

Re: Exit button for bb10 app

Yeah sorry about the code not working its been a few years since I used it.

As for app approval/rejection... No you're fine not to include an exit button. In fact not one of the apps I've made have included an exit button ;-)

PlayBook Apps: DataMine, Dots + Boxes, 5 Marbles
BlackBerry SmartPhone Apps: 5 Marbles Soon: **** (D.Z.A), ****Quest, **** Challenge, VaultCracker, DevBrowser, Radial****
Contributor
Posts: 27
Registered: ‎02-17-2013
My Device: Developer-BB10
My Carrier: ---

Re: Exit button for bb10 app

Thank you very much.