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
anandr37
Posts: 19
Registered: ‎03-11-2012
My Device: Pearl 3G

HELP!! How to use Adam Stanley's template and AIR Native extensions

I have a web works app which needs to interact with native C code in playbook.

 

The app uses adobe air native extensions to make the native call, from a HTML

UI. I am following the below 2 tutorials for the same :

 

https://github.com/astanley/WebWorks-Community-APIs/tree/master/Tablet/TEMPLATE

http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/Creating-AIR-Native-Extensions-fo...

 

The "Creating Sample Air Application" part from the second link, needs to be done in HTML using Adam 

Stanley's template.

 

My question is once I have built the ane file(com.example.ane as shown in tutorial link #2),how do I integrate it with the UI which uses the Adam Stanley template (that is call the ane library from the Template.as tutorial link #1).

 

Do I need to copy the ane part into the fielder C:\Program Files\Research In Motion\BlackBerry WebWorks SDK for TabletOS\bbwp\ext\Template or package the native extension code along with the bar file or something ?

 

BlackBerry Development Advisor
elena_laskavaia
Posts: 417
Registered: ‎10-27-2010
My Device: PlayBook

Re: HELP!! How to use Adam Stanley's template and AIR Native extensions

.ane package have to be included in the bar, it cannot be done with webworks packager afaik, you would have to upackage bar that web packager created and repackage it using airpackager and add -ane option

Contributor
anandr37
Posts: 19
Registered: ‎03-11-2012
My Device: Pearl 3G

Re: HELP!! How to use Adam Stanley's template and AIR Native extensions

Thanks, still a bit confused though, could you provide me with a sample command line instruction for this.