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
Retired
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: Build App with qnx libraries in FlashDevelop

It seems like I forgot a step in my guide. In your app.xml file above the </application> tag at the end add:

 

<extensions>
        <extensionID>qnx.system.QNXDevice</extensionID>
        <extensionID>qnx.net.QNXNetwork.ane</extensionID>
        <extensionID>qnx.sensors.QNXSensors</extensionID>
        <extensionID>qnx.fuse.ui.skins.QNXSkins</extensionID>
</extensions>

This is for any ANE files you're adding in your app,

 

You also need to add point to the ANE files when compiling in the command line with "-ane [location]". This can be found in the SetupApplication.bat file.

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Retired
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: Build App with qnx libraries in FlashDevelop


bkirvin wrote:

interesting...can you tell me if "framework.swc", "rpc.swc" and "rpc_rb.swc" should be internally or externally linked when using the PaymentService?


They should be included libraries. 

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Retired
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: Build App with qnx libraries in FlashDevelop

[ Edited ]

Attached is a FlashDevelop demo I created that I got working. The files in the lib folder are from BlackBerry AIR SDK 3.2.1.

 

Cheers,

Dustin

Follow me on Twitter: @dustinmalik
-----------------------------------------------------------------------------------------------------
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
New Developer
Posts: 129
Registered: ‎11-21-2012
My Device: Z10
My Carrier: -

Re: Build App with qnx libraries in FlashDevelop

[ Edited ]

It works now!

 

Thank you so much for your help and for the demo project Dustin!

Highlighted
Developer
Posts: 1,269
Registered: ‎12-29-2010
My Device: PlayBook, Z10 LE, Dev Alpha C

Re: Build App with qnx libraries in FlashDevelop


dmalik wrote:

It seems like I forgot a step in my guide. In your app.xml file above the </application> tag at the end add:

 

<extensions>
        <extensionID>qnx.system.QNXDevice</extensionID>
        <extensionID>qnx.net.QNXNetwork.ane</extensionID>
        <extensionID>qnx.sensors.QNXSensors</extensionID>
        <extensionID>qnx.fuse.ui.skins.QNXSkins</extensionID>
</extensions>

This is for any ANE files you're adding in your app,

 

You also need to add point to the ANE files when compiling in the command line with "-ane [location]". This can be found in the SetupApplication.bat file.


ZOMG, I just spent too much time debugging a launch fail for a PlayBook app that uses QNXNetwork.

The "bug" turned out to be that I needed to have:

 

<extensions>
        <extensionID>qnx.net.QNXNetwork.ane</extensionID>
</extensions>

and *not* what I had hastily typed in:

 

<extensions>
        <extensionID>qnx.net.QNXNetwork</extensionID>
</extensions>

so ... why, oh why, is QNXNetwork so special that the .ane extension needs to be there for that particular ANE, but not the others?