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
BlackBerry Development Advisor
jdolce
Posts: 172
Registered: ‎10-25-2010
My Device: Not Specified

Community AIR Native Extensions

Hey Everyone,

 

I would love to get a list of all the community native extensions up on the new AIR development site. If you developed one for PlayBook and it is available to be downloaded, you can send me a private message or reply to this thread. We would link directly to your site or download page for it.

 

Our team have a few that we have been working on in our free time, which we plan to open source. It would be great to add community ANE's to the list as well.

 

Julian

Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10

Re: Community AIR Native Extensions

Great news. Hopefully this includes:
* GPS
* Magnometer

And that it shows how events are pushed to the AIR level.
Developer
MauriceRice
Posts: 425
Registered: ‎03-17-2011
My Device: Developer

Re: Community AIR Native Extensions


jdolce wrote:

 

Our team have a few that we have been working on in our free time, which we plan to open source. It would be great to add community ANE's to the list as well.

 

Julian


I am working on an ANE for the magnetometer but I am some trouble getting it to work. See this thread:

http://supportforums.blackberry.com/t5/Adobe-AIR-Development/Accessing-BPS-events-in-an-ANE/td-p/173...

 

I know that official support for sensors will be in the BB10 Air SDK, but there is huge demand for this functionality in my app right now.

 

I understand that you demonstrated a working ANE at JAM10. Can you tell me where the list that you describe above is located? Also can you tell me if the sensor ANE is included in the repository?

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

Contributor
bezineb
Posts: 17
Registered: ‎01-08-2012
My Device: BlackBerry Playbook - developer

Re: Community AIR Native Extensions

Hello,

 

I developed an extension for the Gyroscope. It is available here:

https://github.com/bezineb5/Gyroscope-Air-Native-Extension-for-Blackberry

 

Best regards,

Benjamin

Developer
MauriceRice
Posts: 425
Registered: ‎03-17-2011
My Device: Developer

Re: Community AIR Native Extensions

[ Edited ]

bezineb wrote:

Hello,

 

I developed an extension for the Gyroscope. It is available here:

https://github.com/bezineb5/Gyroscope-Air-Native-Extension-for-Blackberry

 

Best regards,

Benjamin


Thanks Benjamin,

 

I notice that you have included build scripts for eclipse. When I build this project  using the internal builder of Momentics IDE  v2.0 (but modified to use the magnetometer sensor), I encounter the same problem that I reported in my other thread, it builds correctly but fails at runtime. My ANE runs fine until I include even a single BPS call (even if the code is not actually executed). This leads me to believe that something is amiss with the build itself and some critical component is excluded from the so file.

 

Do you know of any special tweaking that I have to do when using the QNX IDE? 

 

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

Contributor
bezineb
Posts: 17
Registered: ‎01-08-2012
My Device: BlackBerry Playbook - developer

Re: Community AIR Native Extensions

Hi,

 

Actually, I think I ran through the exact same issue as you:

http://supportforums.blackberry.com/t5/Native-Development/Use-sensor-APIs-of-the-NDK-2-0-in-an-AIR-N...

 

In the end, it was just a missing linker input in order to use the bps library:

-lbps

 

However, I admit I don't understand why it's not visible in the code I put on GitHub - I should check that.

 

Best regards,

Benjamin

Developer
MauriceRice
Posts: 425
Registered: ‎03-17-2011
My Device: Developer

Re: Community AIR Native Extensions

[ Edited ]

bezineb wrote:

Hi,

 

Actually, I think I ran through the exact same issue as you:

http://supportforums.blackberry.com/t5/Native-Development/Use-sensor-APIs-of-the-NDK-2-0-in-an-AIR-N...

 

In the end, it was just a missing linker input in order to use the bps library:

-lbps

 

However, I admit I don't understand why it's not visible in the code I put on GitHub - I should check that.

 

Best regards,

Benjamin


Thanks for your reply. I didn't use your build scripts because I am using the BB provided IDE. I would have thought that the bps library would already specified in the default settings.. I'm new to this.. Can someone point me to where the link libraries are manually specified. in the Momentics interface?

 

EDIT: I entered "bps" in the following setting path in the project properties: Settings : QCC Linker : Libraries : Libraries (-l)

.Also clicked "Open Add library Wizard: : Standard BlackBerry Platform Library : Common Services : BlackBerry Platform Services

 

Works like a charm

 

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

Contributor
bezineb
Posts: 17
Registered: ‎01-08-2012
My Device: BlackBerry Playbook - developer

Re: Community AIR Native Extensions

I'm also using the Momentics (eclipse-based) IDE. To set the library input for the linker, you have to right-click on your project, choose properties.

Go to the category "C+/C++ build" / Settings.

There, choose configuration named "[All configurations]" to set  the import for all targets.

 

Select QCC Linker -> Libraries

In the "libraries (-l)" list, add a new item called "lbs".

 

Benjamin

Developer
MauriceRice
Posts: 425
Registered: ‎03-17-2011
My Device: Developer

Re: Community AIR Native Extensions

I really appreciate your assistance. My ANE is working great now.


bezineb wrote:

I'm also using the Momentics (eclipse-based) IDE. To set the library input for the linker, you have to right-click on your project, choose properties.

Go to the category "C+/C++ build" / Settings.

There, choose configuration named "[All configurations]" to set  the import for all targets.

 

Select QCC Linker -> Libraries

In the "libraries (-l)" list, add a new item called "lbs".

 

Benjamin


 

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