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 Developer
Posts: 62
Registered: ‎02-06-2012
My Device: Blackberry Playbook 16GB
My Carrier: Bell

HELP! BB10

I have a quick question, when I loaded my app onto my dev alpha, I click on it and it opens for half a second then closes. Why is this happening? Please help.

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

Re: HELP! BB10

Is this different than the earlier post at
http://supportforums.blackberry.com/t5/Adobe-AIR-Development/BB-10-APP/td-p/1823365
?

Have you tried debugging it?
Is your XML config files correct?
New Developer
Posts: 62
Registered: ‎02-06-2012
My Device: Blackberry Playbook 16GB
My Carrier: Bell

Re: HELP! BB10

I don't know how to debug it. I have 2 xml files is that right? I will post the xml here.


<?xml version="1.1" encoding="UTF-8" standalone="no" ?>
<application xmlns="http://ns.adobe.com/air/application/3.2">
<id>EngineAccelerationSoundBoard</id>
<versionNumber>1.1</versionNumber>
<versionLabel/>
<filename>CASB(BB10 768x1280)</filename>
<description/>
<!-- To localize the description, use the following format for the description element.<description><text xml:lang="en">English App description goes here</text><text xml:lang="fr">French App description goes here</text><text xml:lang="ja">Japanese App description goes here</text></description>-->
<name>CASB(BB10 768x1280)</name>
<!-- To localize the name, use the following format for the name element.<name><text xml:lang="en">English App name goes here</text><text xml:lang="fr">French App name goes here</text><text xml:lang="ja">Japanese App name goes here</text></name>-->
<copyright/>
<initialWindow>
<content>Car%20Acceleration%20Sound%20Board%20(BB10%20768x1280).swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>false</fullScreen>
<renderMode>auto</renderMode>
<autoOrients>true</autoOrients></initialWindow>
<icon/>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
<android>
<manifestAdditions>
<![CDATA[<manifest>
</manifest>]]>
</manifestAdditions>
</android>
<supportedLanguages>en</supportedLanguages>
</application>

2nd XML

<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<qnx>
<initialWindow>
<systemChrome>none</systemChrome>
<transparent>false</transparent>
</initialWindow>
<author>Adam Leaf</author>
<icon>
<image>Spedometer 150x150</image>
</icon>
</qnx>

New Developer
Posts: 62
Registered: ‎02-06-2012
My Device: Blackberry Playbook 16GB
My Carrier: Bell
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: HELP! BB10

Couple of things.  Some might be related, other might be style:

  • The ID should be a reverse DNS and not a single name to avoid conflicts.  Would not normally happen, but it is good style to have a reverse DNS signature (e.g. com.mydomain.engaccelsndbrd)
  • Version number should be format of x.x.x (e.g. 1.1.0)
  • Not certain what your content item is, but that might be causing the problem.  Just set it to the name of your swf.  If that is the name of your swf, make it simple (e.g. engaccelsndbrd.swf)
  • systemchrone, transparent, renderMode, customUpdateUI, allowBrowserInvocation can be commented out

In the bar-descriptor.xml file:

  • My file has version = 1.0, not 1.1
  • Comment out author.  Would need to match signing if you have it there (at one time you had to)
  • Icon file should go to a file name and be PNG (86x86).  Keep the names simple, no spaces.
  • Not seeing any permission tags, so I am assuming your app is not accessign the file system, network, play sound, record sound, use camera, read GPS or read the device id.

If this does not do it, you will need to run the app in debug mode and it will show exactly where it is crashing if it is making it that far.  You can get a free 60 day version of Flash Builder 4.6.  The other nice thing is that Flash Builder get the XML files correct and is easier to sign and deploy apps.

 

Hope that helps.

New Developer
Posts: 62
Registered: ‎02-06-2012
My Device: Blackberry Playbook 16GB
My Carrier: Bell

Re: HELP! BB10

How do i package with flashbuilder?

New Developer
Posts: 62
Registered: ‎02-06-2012
My Device: Blackberry Playbook 16GB
My Carrier: Bell

Re: HELP! BB10

I don't really understand how to fix this. Would you mind fixing my xml I can give you all the information.
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: HELP! BB10

In FlashBuilder, you select "Export Release Build" This assumes the keys have been configured with the IDE.
Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: HELP! BB10

You just need to the edit the XML in a text editor. To comment a tag in XML, just surround it with <!-- <tag>stuff</tag> -->.

The other items (file names), you will need to edit from the file system.
New Developer
Posts: 62
Registered: ‎02-06-2012
My Device: Blackberry Playbook 16GB
My Carrier: Bell

Re: HELP! BB10

[Fatal Error] bar-descriptor.xml:7:4: The content of elements must consist of well-formed character data or markup.
Error: The content of elements must consist of well-formed character data or markup.

 

That was in blackberry graphical aid.