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
Developer
zezke
Posts: 1,004
Registered: ‎12-12-2010
My Device: Z10 (red Limited Edition)
My Carrier: Mobile Vikings

Re: NDK Native Extensions

Thank you, very much appreciated!

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
Please use plain text.
Developer
zezke
Posts: 1,004
Registered: ‎12-12-2010
My Device: Z10 (red Limited Edition)
My Carrier: Mobile Vikings

Re: NDK Native Extensions

Oops I got something else wrong:

 

adt -package -target ane ~/Downloads/HelloWorld.ane ~/Documents/Blackberry\ Projects/HelloWorldExtension/Library/descriptor.xml -swc ~/Documents/Blackberry\ Projects/HelloWorldExtension/Library/com.Endare.HelloWorld.extension.swc -platform QNX-ARM ~/Documents/bb-ndk/HelloWorldExtension/Device-Debug/libHelloWorldExtension.so 

 

Unexpected implementation for platform: QNX-ARM

 

adt -version
3.0.0.4080

 Which adt should I use?

 

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
Please use plain text.
BlackBerry Development Advisor (Retired)
andyjin
Posts: 35
Registered: ‎10-25-2010
My Device: Not Specified

Re: NDK Native Extensions

Make sure you define the platform right in your "extension.xml" file.

 

Please use plain text.
Developer
zezke
Posts: 1,004
Registered: ‎12-12-2010
My Device: Z10 (red Limited Edition)
My Carrier: Mobile Vikings

Re: NDK Native Extensions

Thanks, that did it, I forget to edit the descriptor. I got a new error though (Missing 'library.swf' for platform: QNX-ARM), but I think I can find this one in the Adobe documentation. 

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
Please use plain text.
BlackBerry Development Advisor (Retired)
andyjin
Posts: 35
Registered: ‎10-25-2010
My Device: Not Specified

Re: NDK Native Extensions

Did you compile an ActionScript library project (maybe using FB)? If yes you can extract the library.swf from the project output ".swc" file. The ".swc" file is just a zip file.

 

The library.swf file needs to sit besides the native shared library in the directory.

 

Yes check the Adobe docs for details.

 

Please use plain text.
Developer
MauriceRice
Posts: 425
Registered: ‎03-17-2011
My Device: Developer
My Carrier: Telus

Re: NDK Native Extensions

I am following this thread with great interest. Does anyone know if an opensource reposititory for AIR native extension is in the works? If not how would one go about organizing such a project? This would be a boon to non C programmers like myself. but it would require lots of support from the NDK community.

_________________________
In the dark and need a sky map?
Discover What's up at App World.
Follow What's up on Facebook

Please use plain text.
Developer
Innovatology
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course
My Carrier: Vodafone

Re: NDK Native Extensions

Adobe have a page up listing ANE's, but does not tell us how to submit new ones:

 

https://www.adobe.com/devnet/air/native-extensions-for-air.html

Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands
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: NDK Native Extensions

That would be a good reference to have, and I hope RIM would mirror that or have there own referenced on a page like: http://us.blackberry.com/developers/tablet/adobe.jsp
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: NDK Native Extensions

I would also suggest to start enumerating what extensions developers need from the NDK level for AIR apps. I can guess that the magnetometer is one. I have not seen much in the NDK API that is "needed" in AIR. Probably more device related stuff.
Please use plain text.
Developer
MauriceRice
Posts: 425
Registered: ‎03-17-2011
My Device: Developer
My Carrier: Telus

Re: NDK Native Extensions


webbsites wrote:

Adobe have a page up listing ANE's, but does not tell us how to submit new ones:

 

https://www.adobe.com/devnet/air/native-extensions-for-air.html


This is good information - this is exactly what I am looking for.

 

So what we need now is a mechanism for needy AIR developers like me to communicate with kind souls from the BB NDK community who might be able to add entries for our platform.

 

I would image that an offficial RIM mechanism would be best. Does anyone know who I could contact?

_________________________
In the dark and need a sky map?
Discover What's up at App World.
Follow What's up on Facebook

Please use plain text.