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

Native Development

Reply
Contributor
Posts: 19
Registered: ‎03-11-2012
My Device: Pearl 3G
My Carrier: Vodafone
Accepted Solution

Need help in developing a Playbook app

[ Edited ]

I need to write a UI based application for playbook which needs to interface with C++ code

of an existing playbook app.

 

Was wondering what would be the best option

#1 Develop the UI using C/C++ Native SDK -  interface with the C++ app code

#2 Develop the UI using Java Native SDK - interface the Java to my C++ app

#3 Develop the UI using AIR - use some feature of the NDK to interface with the C++ library code.

 

Option #1 seems straight forward. Option #2 and #3 might need some interface to call a C++

methods from Java or AIR.

 

Since I am new to Playbook app development please let me know what would be the best option.

Developer
Posts: 137
Registered: ‎10-26-2010
My Device: Bold 9900 + PlayBook
My Carrier: Rogers

Re: Need help in developing a Playbook app

The PlayBook has no support for Java outside of the Android Player, which produces apps with a distinctly non-native feel.

AIR however has a quite good native extension interface that let's you call native code. AIR also has a current UI framework that's quite good.

The native SDK currently has no native UI toolkit, and won't until Cascades is released. So if you're building your UI with the native SDK you'll have to bring your own UI toolkit. You'd probably want to look into Qt.

So, unless you're already a Qt developer or willing to wait for Cascades you probably want to do UI in AIR.
--------
Taylor Byrnes
Contributor
Posts: 19
Registered: ‎03-11-2012
My Device: Pearl 3G
My Carrier: Vodafone

Re: Need help in developing a Playbook app

[ Edited ]

Thanks a million that was really helpful.

 

One other question, 

My app, has to call an existing C++ based app to get

data. Is there any way to make calls to C++ functions from the

AIR Native Extension Interface.

 

(Something like Java Native Interface, but for Adobe AIR  )

 

 

Developer
Posts: 61
Registered: ‎06-28-2011
My Device: 9700+PB
My Carrier: sfr

Re: Need help in developing a Playbook app

Hi,

could you explain better if the existing c++ application you talk of will be loaded in memory (on the same device) and just  waiting for requests and there shall be some sort of communication between the 2 apps ?

Tks

 

---------<={##}=>---------
I.Ravelo; Renault S.A.S. Corporate BBOS Java Apps Lead Conceptor/Coder; Qt learner
Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Need help in developing a Playbook app