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
Eomono
Posts: 42
Registered: ‎11-21-2012
My Device: Playbook, Z10
My Carrier: -
Accepted Solution

How to build for PlayBook from a BB10 environment?

Hello! I've been using this amazing template for developing an app for BB10 and now that is finished I would like to deploy it to PlayBook too.

 

I already changed the SDK from 3.2 to 2.1 in the "Project Properties" window; but, when packaging the app, the manifest still declares that the app needs the OS BB10 and throws me an error. I suppose I need to modify a path within the packager commands but I can't find which one.

 

Could you point me in the right direction please?

 

Thank you!

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

Re: How to build for PlayBook from a BB10 environment?

You'll need to update your bar-descriptor.xml file to set the correct value for the <platformVersion> node:

 

https://developer.blackberry.com/air/documentation/r_barfile_dtd_ref_platformversion.html

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: How to build for PlayBook from a BB10 environment?

You probably have to re-import the ANE's since they do not change because you changed the target SDK.
Please use plain text.
Contributor
Eomono
Posts: 42
Registered: ‎11-21-2012
My Device: Playbook, Z10
My Carrier: -

Re: How to build for PlayBook from a BB10 environment?

[ Edited ]

Thank you for answering!

 

I added the following to the bar-descriptor.xml file:

 <configuration>
        <platformVersion>2.0.0</platformVersion>
</configuration>

 

Also re-imported the ANE's and libs I use in the project.

 

But I'm still getting the following error after installing on the device:

result::failure 821 Application-Requires-System: unrecognized system name 'BlackBerry 10'

 

What could I be missing?

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

Re: How to build for PlayBook from a BB10 environment?

If you are ok with it, please post your full bar-descriptor.xml and -app.xml files, using the "insert code" tool (clipboard icon with a letter "C") on the rich text tab of the forum post editor. 

 

 

 

forum_reply_dialog.PNG

Please use plain text.
Contributor
Eomono
Posts: 42
Registered: ‎11-21-2012
My Device: Playbook, Z10
My Carrier: -

Re: How to build for PlayBook from a BB10 environment?

Here is the bar-descriptor.xml:

 

<?xml version="1.0" encoding="UTF-8"?>
<qnx>
   <initialWindow>
      <systemChrome>none</systemChrome>
      <transparent>false</transparent>
   </initialWindow>
   
	<configuration>
		<platformVersion>2.0.0</platformVersion>
	</configuration>
   
   <!--  Name of author which is used for signing. 
         Must match the developer name of your development certificate 
		 You can confirm this when -->
    <author>Adrian Higareda</author>

    <!--  Unique author ID assigned by signing authority. Required if using debug tokens -->
    <authorId>gYAAgHZ7DdxZp1GYNthwgmokgRM</authorId>

    <!-- <The icon for the application which should be 114x114 -->
    <icon>
      <image>icons/blackberry/icon/icon_114.png</image>
   </icon>
   
   <!--  The splashscreen that will appear when your application is launching. Should be 768x1280 for Z10 and 720x720 for Q10. Future all touch will be 720x1280 -->
    <splashScreens>
		<image>icons/blackberry/splashScreens/splash-600x1024.png</image>
        <image>icons/blackberry/splashScreens/splash-768x1280.png</image>
        <image>icons/blackberry/splashScreens/splash-720x1280.png</image>
		<image>icons/blackberry/splashScreens/splash-1024x600.png</image>
        <image>icons/blackberry/splashScreens/splash-1280x768.png</image>
        <image>icons/blackberry/splashScreens/splash-1280x720.png</image>
        <image>icons/blackberry/splashScreens/splash-720x720.png</image>
    </splashScreens>
   
   <!--  The permissions requested by your application. -->
   <!-- <permission>access_location_services</permission> -->
   <!-- <permission>access_internet</permission> -->
   <!-- <permission>access_pimdomain_calendars</permission> -->
   <!-- <permission>access_pimdomain_contacts</permission> -->
   <!-- <permission>access_pimdomain_messages</permission> -->
   <!-- <permission>access_pimdomain_notebooks</permission> -->
   <!-- <permission>access_shared</permission> -->
   <!-- <permission>access_sms_mms</permission> -->
   <!-- <permission>bbm_connect</permission> -->
   <!-- <permission>narrow_landscape_exit</permission> -->
   <!-- <permission>post_notifications</permission> -->
   <!-- <permission>read_device_identifying_information</permission> -->
   <!-- <permission>record_audio</permission> -->
   <!-- <permission>run_when_backgrounded</permission> -->
   <!-- <permission>use_camera</permission> -->
   <!-- <permission>_sys_use_consumer_push</permission> -->
   
   <!--  Fourth digit segment of the package version. First three segments are taken from app 
   		 description versionNumber tag. Must be an integer from 0 to 2^16-1 -->
   <!-- <buildId>1</buildId> -->
</qnx>

 And here is the application.xml:

 

<?xml version="1.0" encoding="utf-8"?>
<application xmlns="http://ns.adobe.com/air/application/3.1">
  <id>air.PoseidonsPizzaBB10</id>
  <versionNumber>1.3.1</versionNumber>
  <supportedProfiles>mobileDevice</supportedProfiles>
  <filename>Poseidon's Pizza</filename>
  <name>Poseidon's Pizza</name>
  <android>
    <manifestAdditions><![CDATA[<manifest android:installLocation="auto">
	<uses-sdk android:minSdkVersion="8" />
	<uses-permission android:name="android.permission.INTERNET" />
	<uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch" />
</manifest>]]></manifestAdditions>
  </android>
  <iPhone>
    <InfoAdditions><![CDATA[<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleBlackOpaque</string>
<key>UIRequiresPersistentWiFi</key>
<string>NO</string>
<key>UIPrerenderedIcon</key>
<true />
<key>UIApplicationExitsOnSuspend</key>
<true />
<key>UIDeviceFamily</key>
<array>
	<!-- iPhone support -->
	<string>1</string>
	<!-- iPad support -->
	<!--<string>2</string>-->
</array>]]></InfoAdditions>
    <requestedDisplayResolution>high</requestedDisplayResolution>
  </iPhone>
  <initialWindow>
    <title>Poseidon's Pizza</title>
    <content>PoseidonsPizzaBB10.swf</content>
    <visible>true</visible>
    <fullScreen>true</fullScreen>
    <autoOrients>false</autoOrients>
    <aspectRatio>landscape</aspectRatio>
    <renderMode>direct</renderMode>
    <!--<depthAndStencil>true</depthAndStencil>-->
    <!-- required for 3D -->
    <systemChrome>standard</systemChrome>
    <resizable>true</resizable>
  </initialWindow>
  <!-- 
	<icon>
		<image48x48>icons/icon_48.png</image48x48>
		<image57x57>icons/icon_57.png</image57x57>
		<image72x72>icons/icon_72.png</image72x72>
		<image114x114>icons/icon_114.png</image114x114>
		<image144x144>icons/icon_144.png</image144x144>
		<image512x512>icons/icon_512.png</image512x512>
	</icon>
	-->
  <!-- 
	AIR options:
	http://livedocs.adobe.com/flex/3/html/File_formats_1.html#1043413
	
	AIR mobile options:
	http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-7ffe.html
	
	iOS icons guidelines:
	http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/IconsImage...
	
	Android manifest documentation:
	http://developer.android.com/guide/topics/manifest/manifest-intro.html
	-->
  <extensions>
    <extensionID>qnx.net.QNXNetwork.ane</extensionID>
    <extensionID>qnx.sensors.QNXSensors</extensionID>
  </extensions>
</application>

 

Thank you :smileyhappy:

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

Re: How to build for PlayBook from a BB10 environment?

[ Edited ]

Nothing there stands out to me at first glance, but I haven't used the <configuration> node before.  Note that the docs say that the description attribute is required for this node, but you don't have a description attribute:

 

https://developer.blackberry.com/air/documentation/r_barfile_dtd_ref_configuration.html

 

but that may not matter in your case if there is only one <configuration> node.

 

You could also try removing the <configuration> beginning and ending tags, which would promote the <platformVersion> node up to the <qnx> level.  My hunch is this is not the root cause but it may help narrow it down.

Please use plain text.
Contributor
Eomono
Posts: 42
Registered: ‎11-21-2012
My Device: Playbook, Z10
My Carrier: -

Re: How to build for PlayBook from a BB10 environment?

Ok, I tried assigning the description attribute and also removing the <configuration> node entirely (leaving <platformVersion> as a child of <qnx>); both throw me the same 821 error.

 

Maybe a bat file is overriding the SDK path? (although I have checked all of them and nothing really stands out to me).

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

Re: How to build for PlayBook from a BB10 environment?

I haven't used the FlashDevelop template you're using (I rolled my own flow before that template was published), but:  is it possible that your bar-descriptor.xml edits are being made in a place where they are not actually getting copied into the bar file?  Have you unzipped your bar file and confirmed that the bar-descriptor.xml that's getting packaged has the contents you expect?

Please use plain text.
Contributor
Eomono
Posts: 42
Registered: ‎11-21-2012
My Device: Playbook, Z10
My Carrier: -

Re: How to build for PlayBook from a BB10 environment?

[ Edited ]

Yeah, I have unzipped it and the xml files are fine, just as the unpacked versions.

 

However, I found this in the MANIFEST.MF:

 

Application-Requires-System: BlackBerry 10/2.0.0.0

 

I'm hoping that is the cause of the issue. Do you know where this line is generated?

Please use plain text.