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
Developer
Posts: 17
Registered: ‎11-22-2010
My Device: PlayBook

App won't launch when opened in Simulator

I launch and install an app from Flash Builder 4.  The app runs in the simulator.  I exit the app.  I then click the apps button on the simulator screen.  The app starts loading, when the loading is finished, the app does not load.  This happens with all of my test apps including the hello world app.

New Developer
Posts: 18
Registered: ‎11-14-2010
My Device: Not Specified

Re: App won't launch when opened in Simulator

This happens to me too. I just assume it is because I am debugging the app instead of a build and install, or a simulator bug.

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: App won't launch when opened in Simulator

Can you post a simple version of what is not working so we all can take a peek at it?

Developer
Posts: 278
Registered: ‎10-27-2010
My Device: Playbook

Re: App won't launch when opened in Simulator

jjackson is right, when you launch it in debug mode connections are set up to run for that single instance.  When you exit and then try to reload the connections are not remade thus the app fails to load...  or that is how I understand it.  When you use the run method to compile and install it should run fine time after time.

--------------
kdittyr

Accepted PlayBook Applications:
HDB Converter -- Utilities/Calculators
Developer
Posts: 17
Registered: ‎11-22-2010
My Device: PlayBook

Re: App won't launch when opened in Simulator

I figured out the problem. 

 

I have been creating debug configurations for my projects.  I set the deployment method to "Install and Launch".  I then run the program from the debug icon (bug) in Flash Builder.  This installs the program and runs the program, in debug mode.  When the simulator app is started, it probably tries to communicate with the Flash Builder debugger.  The app times out because the debug is not available.  

 

Everything works fine if you create a run configuration then install/run the application from the run button in Flash Builder.

 

I would recommend only using "launch" in "debug configurations", when you are debugging the application, then use "install and launch" when your are using a "run configuration" and running the program.

 

Brad