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
New Contributor
MrProsser
Posts: 7
Registered: ‎11-23-2012
My Device: Blackberry Playbook 32 GB

Developing for PlayBook and BB10

I am very new mobile development and ever newer to developing for Blackberry devices so I am feeling a bit lost right now. I have a PlayBook and downloaded the Native SDK for it and have been playing around a bit, however I also want to look into BB10 development. Do I have to download the Native SDK for BB10 and install it in parallel with the tablet SDK? Will this result in having two Momentics installations as well? Is there a better solution?

Contributor
SerproApps
Posts: 20
Registered: ‎11-27-2012
My Device: BlackBerry Playbook

Re: Developing for PlayBook and BB10

If you want to develop for BB10, you need to download the SDK. No problem with that you have 2 SDK installed.
If it pleases you my help, please give me a Like! :smileywink:
New Contributor
MrProsser
Posts: 7
Registered: ‎11-23-2012
My Device: Blackberry Playbook 32 GB

Re: Developing for PlayBook and BB10

Thanks, but isn't it quite a waste of space to install the IDE twice when doing this? Does each version have customizations for either Playbook or BB 10?

Contributor
SerproApps
Posts: 20
Registered: ‎11-27-2012
My Device: BlackBerry Playbook

Re: Developing for PlayBook and BB10

Each SDK has its own characteristics. I do recommend using only the SDK BB10, since in the future the BB Playbook will be updated BB10.

If it pleases you my help, please give me a Like! :smileywink:
New Contributor
MrProsser
Posts: 7
Registered: ‎11-23-2012
My Device: Blackberry Playbook 32 GB

Re: Developing for PlayBook and BB10

This would be ideal and what I had hoped to do but I have not been able to get the either of the simulators working properly so in order to test anything I have to use my actual Playbook. I tried getting the BB 10 sim working today and was hoping I could simply get rid of the Playbook SDK but no such luck. I am using an older, small netbook for this and it seems to play poorly with both VMWare and the sims themselves.

Contributor
SerproApps
Posts: 20
Registered: ‎11-27-2012
My Device: BlackBerry Playbook

Re: Developing for PlayBook and BB10

You can start developing your app with the Tablet OS SDK, and when you can begin to port their app to BB10, I do not think you have to make many changes

PS: Sorry for my english, I use a translator
If it pleases you my help, please give me a Like! :smileywink:
New Contributor
MrProsser
Posts: 7
Registered: ‎11-23-2012
My Device: Blackberry Playbook 32 GB

Re: Developing for PlayBook and BB10

I hope both OS are similar enough that it will not be difficult to do that. I am just learning now anyway.

No problem about the English. I am learning Japanese and know how difficult it is when I try to write in the language.

Contributor
SerproApps
Posts: 20
Registered: ‎11-27-2012
My Device: BlackBerry Playbook

Re: Developing for PlayBook and BB10

Welcome then to the world of BlackBerry development, I specialize more in HTML5. If you have any questions, I'm here to help
If it pleases you my help, please give me a Like! :smileywink:
Trusted Contributor
taylor-tomt
Posts: 231
Registered: ‎11-19-2010
My Device: Z10, Playbook

Re: Developing for PlayBook and BB10

Right now, to develop for the playbook, you have to use the NDK for OS 2.1. If you try to load an app built using the NDK for OS10 onto your OS2.1 PB, it will fail.

PB will be converted to OS 10, but not until some time after the launch of the new BB10 phones (or BB!0 phones (c) ), so OS2.1 will be with us at least for a few more months.

 

 

 

Porting your code from OS 2.1 NDK, to OS 10 NDK is almost a no brainer. There is one difference I know about when it comes to displaying Alert dialogs. You have to add a couple of lines of code to the bbutil library to allow the Alerts to display properly. There may be other issues, but I am not aware of them at the moment.

 

To speed up the simulator, access your PC BBIOS and enable 'virtualization' if your PC supports it. It makes a HUGE difference.

 

Make sure you are using the right simulator with the right NDK. I use the OS10 simulator for OS10 NDK (obviously), and I use my actual PB for OS2.1 NDK and don't bother with the simulator. You have to register for signing keys to enable loading your development apps onto your PB.

 

There are several other threads here about getting the OS10 simulator to run. Check them out if you're still having trouble.

 

 

Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook

Re: Developing for PlayBook and BB10

Right now NDK 10 allows you to build for either Playbook or BB10.