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
New Contributor
lokiby
Posts: 7
Registered: ‎12-17-2012
My Device: Blackberry Playbook
Accepted Solution

AIR app closes on launch

Hello!

 

Hope, someone can help me with that... :smileyhappy:

 

So, I'm using flash cs5.5 with air sdk 3.5, I can build app, deploy it to my playbook, but when I lauch it, it closes right away.

I have also tried with air sdk 2.6 - same result.

 

what I have:

blackberry table sdk 2.1 -latest

playbook os 2.1.0.1088 - latest

air sdk 3.5 and 2.6

 

Simplest "hello world" application just doesn't launch...

Thank you!

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: AIR app closes on launch

It is crashing. Try running in debug and you will get a trace in where it is crashing.

AIR SDK 3.5? BB only runs on AIR SDK 3.1.
Please use plain text.
New Contributor
lokiby
Posts: 7
Registered: ‎12-17-2012
My Device: Blackberry Playbook

Re: AIR app closes on launch

[ Edited ]

OK, then how can I debug with flash cs on my device?

Thank you!

 

UPD: found some docs on command line debug, give it a try.

Please use plain text.
New Contributor
lokiby
Posts: 7
Registered: ‎12-17-2012
My Device: Blackberry Playbook

Re: AIR app closes on launch

[ Edited ]

Well, no luck with debugger.

I start fdb, then make "run" command.

Then I do the following command:

 

blackberry-airpackager -target bar-debug -connect [YOUR COMPUTER'S IP ADDRESS] -package HelloWorld.bar -installApp -launchApp HelloWorld-app.xml HelloWorld.swf [ICON FILE NAME] -device [PLAYBOOK IP ADDRESS] -password [SIMULATOR PASSWORD] -devMode

 

Get the following results:

Info: Package created: testbb.bar
Info: Sending request: Install
Info: Action: Install
Info: Debug air: on
Info: Development mode: on
Info: File size: 11462
Info: Installing ...
Info: Processing 11462 bytes
Info: Progress 100%...
actual_dname::testbb.testDev_testbb_____cbb77452
actual_id::testDev_testbb_____cbb77452
actual_version::1.0.0.1
result::success
Info: Updated debug host to 192.168.1.2
Info: Sending request: Launch
Info: Action: Launch
Info: Debug air: on
Info: Development mode: on
Info: Updated debug host to 192.168.1.2
Info: Launching testbb.testDev_testbb_____cbb77452...
result::11231387
Info: done

 

Applicarion launch, closes and nothing happens.

What do I do wrong?

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: AIR app closes on launch

Please use plain text.
Developer
UberschallSamsara
Posts: 1,026
Registered: ‎12-29-2010
My Device: PlayBook, Z10 LE, Dev Alpha C

Re: AIR app closes on launch

You might also review this very old post by Renaun Erickson of Adobe.  It was written in late 2010 to a very early AIR SDK release but you may find some things to check.  I'm not a Flash Pro user so I don't grok the blog post, but I do recall that prior to PlayBook launch, RIM/Adobe webinars did address getting Flash Pro-authored apps onto PlayBook.

Please use plain text.
New Contributor
lokiby
Posts: 7
Registered: ‎12-17-2012
My Device: Blackberry Playbook

Re: AIR app closes on launch

[ Edited ]

Looks like nothing works for me.

I hae tried on simulator as well, it crashes.

I have tried to reinstall flash and  blackberry sdk, that didn't help.

But I have made some test apps before and everything was fine.

 

Can anybody provide me with working test AIR .bar file, so I can try it?

Thank you.

Please use plain text.
BlackBerry Development Advisor
pgarcia
Posts: 52
Registered: ‎04-01-2011
My Device: Torch, Playbook
My Carrier: Rogers

Re: AIR app closes on launch

Hi

 

this is most likely caused by the fact you are using AIR 3.5 to compile your application, as suggested before by jtegen.

 

I'm not used to Flash CS configuration, but you have to follow and adapt to Flash the instructions from here.

 

It basically tells that the code has to be compatible with Flash 11, using the compiler option -swf-version 14, and also passing to the blackberry-airpackager command line the option "-forceAirVersion 3.1".

 

I hope that helps.

 

 

 

 

 

---
Paulo Garcia
Please use plain text.
New Contributor
lokiby
Posts: 7
Registered: ‎12-17-2012
My Device: Blackberry Playbook

Re: AIR app closes on launch

Yeah, but I have removed Air3.5, and reinstalled flash cs, so it's coming with Air 2.6 now.
Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: AIR app closes on launch

You need to have AIR 3.1 installed. AIR 2.6 might be causing the crash as well.
Please use plain text.