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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 1,008
Registered: ‎12-12-2010
My Device: Passport (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!
Developer
Posts: 1,008
Registered: ‎12-12-2010
My Device: Passport (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!
Retired
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.

 

Developer
Posts: 1,008
Registered: ‎12-12-2010
My Device: Passport (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!
Highlighted
Retired
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.

 

Developer
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

Developer
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
Developer
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
Developer
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.
Developer
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