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

Web and WebWorks Development

Reply
New Contributor
Posts: 9
Registered: ‎04-28-2010
My Device: 9950
My Carrier: at&t

Can I invoke C library from JavaScript?

Hi folks,

 

I'd like to use a PhoneGap plugin that uses the BlackBerry Webworks SDK and invoke an

existing C library.

 

The information I have on PhoneGap is detailed at:

http://wiki.phonegap.com/w/page/31930982/Getting-Started-with-PhoneGap-BlackBerry-WebWorks

 

I've not been able to verify if I can call a C library from Blackberry WebWorks SDK. Any thoughts

or suggestions are appreciated.

 

Regards,

Rajesh 

Retired
Posts: 518
Registered: ‎07-18-2011
My Device: Bold
My Carrier: Rogers

Re: Can I invoke C library from JavaScript?

Hi Rajesh,

 

The answer to your question is actually somewhat complicated...

 

If you're trying to make a phonegap application for blackberry smartphones, this is actually built on top of BlackBerry Java which means the underlying libraries need to be written in that.

 

If you're trying to make a phonegap application for blackberry playbooks, it is currently built on top of AIR. This means that you can use a C library (if its ported to BlackBerry NDK) by using an Air Native Extension. 

In the future the implementation will be ported to native meaning you won't need the AIR layer in the middle.



1.Please resolve your thread by clicking the "Accept as Solution" button below the post which solved your problem!
2. If any post helps you please click the button below the post(s)