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

Testing and Deployment

Reply
New Contributor
raptrex
Posts: 3
Registered: ‎01-14-2011
My Device: Playbook
Accepted Solution

How do I exit a app in Playbook Tablet Simulator?

[ Edited ]

Hi, I just compiled the sketchpadstandard into an app and currently have it running in the simulator.  How do I exit/quit out of the app in the simulator?

New Contributor
raptrex
Posts: 3
Registered: ‎01-14-2011
My Device: Playbook

Re: How do I exit a app in Playbook Tablet Simulator?

I found my answer.  You have to "swipe" up from the black bar at the bottom of the simulator.

New Developer
7745435
Posts: 11
Registered: ‎02-12-2011
My Device: 9700 & Playbook

Re: How do I exit a app in Playbook Tablet Simulator?

Thanks! I was wondering about that, I was resetting it which seems kinda waste of time. 

 

So swipe from the bottom up ( from the black parts)

Contributor
dalv
Posts: 21
Registered: ‎02-13-2011
My Device: Tablet OS

Re: How do I exit a app in Playbook Tablet Simulator?

Just in case you'd like to do it programmatically:

 

function dialogOnExit(index){
    if (index==0) blackberry.app.exit();
}
function onExit(){
    var settings = new Array("Exit Dialog",blackberry.ui.dialog.SIZE_SMALL,blackberry.ui.dialog.LOC_CENTER);
    blackberry.ui.dialog.standardAsk("Exit?", blackberry.ui.dialog.D_OK_CANCEL, dialogOnExit, settings);
}

 

where onExit would treagered by some event, like a button click.

PS

Don'f forget to add:

  <feature id="blackberry.ui.dialog" required = "true" version="1.0.0"/>
  <feature id="blackberry.app" required = "true" version="1.0.0"/>

to config.xml