How to execute Blackberry OS 6 app in Blackberry 10 OS - blackberry

I developed one application in Blackberry OS 6.I deployed that app in to Blackberry world successfully.But it is not working in Blackberry OS 10.I am getting following error:
Unsupported for this device
Please help me how to run application in OS 10.
Thanks in Advance.

OS10 is a completely different system. It no longer supports the BB6/7 Java environment. You will need to port your app to one of the new supported platforms:
http://developer.blackberry.com/develop/platform_choice/index.html
Cascades (c++ & qml)
Webworks
Android
Adobe Air

With WebWorks it is possible to run your application in both BlackBerry 6 and BlackBerry 10, you may need to make some changes to your code, but it is certainly possible and there are plenty of resources available.
You can start from here.
Specifically BlackBerry states:
Your BlackBerry WebWorks app can be targeted to run on a variety of
BlackBerry device models or ported to a different OS, such as iOS or
Android.
Developing your app with BlackBerry WebWorks gives you the flexibility
to target users of the latest BlackBerry devices and those who are
using older models. Depending on the OS you want to target, versions
of the BlackBerry WebWorks SDK available for:
BlackBerry 10
BlackBerry PlayBook
BlackBerry 7 and earlier
See here for a tutorial on creating an application which is able to work on old and new BB devices (Simple Hello World application).
A good article to look at can be found here, which explains some of the fundamentals and differences with webworks.

Related

Install worklight project in Blackberry 6-7

I have built a worklight-based app for blackberry phones. I was able to run it on Blackberry 10 by following the instructions given on worklight documents.
Now i want to install my app on Blackberry 6-7. Am not able to find any document for it by IBM. So is there way for me to install my app on Blackberry 6-7? If so please post the steps to install and run it.
You do not mention where you looked at, so I guess you didn't look close enough because in the same location explained how to set-up and develop for BlackBerry 10 in Worklight, there are also documents for BlackBerry 6 and 7.
Follow the training modules.
Setting up your BlackBerry 6 and 7 development environment
Previewing your application on BlackBerry 6 and 7
General information when developing for BlackBerry 6 and 7
And in general: IBM Worklight Getting Started training materials

Blackberry webworks SDK for OS 7 and earlier

I want to develope phonegap app for BB OS7 and earlier but need to get webworks sdk. Blackberry website has only for BB 10. Is webworks for BB10 also support other versions ? if not where to get older versions ?
Here is the page, where you can download Webworks SDK for BlackBerry OS (RIM OS):
http://developer.blackberry.com/bbos/html5/download/
This may be a super late answer, but it's not recommended to use Phonegap for anything < BB10. I would use the webworks sdk natively - it's not much different from phonegap and you can pretty much have both formats in one project with separate config.xml files if your app doesn't rely a lot on hardware interaction. I recently built a simple application and on Blackberry OS6 the phonegap version would barely run but the webworks version works great.
although very late but think it might help. Developing for blackberry using webworks

Blackberry App for OS 7.0 and earlier, with blackberry 10 support

I have to develop a BlackBerry application which runs on all the devices running blackberry OS 7.0 and earlier, and can run on BlackBerry 10 devices, too. How can I do that?
Is a WebWorks application able to support all the above platforms? If yes, there's no IDE for WebWorks development .. how shall I code for that?
WebWorks supports BlackBerry OS 5.0+, BlackBerry PlayBook OS, and BlackBerry 10.
Regarding HTML5 featuers, this is dependent on the OS version. For instance, BlackBerry OS 5.0 is a proprietary browser implementation and does not support Ajax requests. BlackBerry OS 6.0 is WebKit-based, but is an older version of the engine when compared to something like a BlackBerry 10 device. So you'll need to be mindful of which HTML(5) features and functionality are supported on the various platforms.
That being said, if you have a shared HTML5 "base", that can be (re)packaged with the WebWorks SDK for Smartphones (BBOS), Tablet OS SDK (PlayBook), and BB10 SDK. Each will create an application that runs in the respective environment: Java, AIR, Native.
If you start looking at WebWorks APIs (i.e. JavaScript APIs that tie down to the native layer for functionality beyond HTML5; BBM integration for one), then you will need to leverage the API docs to see which APIs can be used with which SDK. There may be differences in implementation, or even availability, of various APIs depending on your platform.
HTML5 provides the most common "base" for re-use, but you will still need to be mindful of each platform's limitations and differences.
There is no WebWorks IDE, you can use whichever IDE you like to create your HTML, JavaScript, and CSS resources. The SDK is then leveraged to "package" those resources into a BlackBerry application for the corresponding platforms.
The HTML5 BlackBerry Developer page should have all the information that you need to start creating WebWorks applications. As that page mentions, you can choose to target all of BB10, BB7, and the Playbook OS with WebWorks.
Webworks can target OS 7.0, Playbook and BB10. You just have to download the SDK for the version you want to deploy to. Be mindful that each platform has platform specific APIs that need to be managed if you use them (like using NFC in BB10, etc). This is actually the reason why there are multiple versions of the SDKs. Each SDK exposes native features of the given platform to HTML5.
As for Development. The easiest way to get started is to use Phonegap. Their documentation is pretty thorough and they have scripts that deploy things for you and manage your directory structure, Manage your pins, and keys, developer tokens, etc.

Blackberry 6 to Blackberry 5

I have a Blackberry 6 Application and I want to convert it to Blackberry 5 Application is there any way I can make it
Can I some way use Blackberry 6 library in Blackberry 5 OR I have to do it all over again for Blackberry 5
So you have an app you created for BlackBerry OS6 and now you want it to work on Blackberry OS5 as well.
You cannot use Blackberry OS6 specific libraries in BlackBerry OS5 . There is nothing like a compatibility package like in Android which will allow you to use new APIs on old operating systems. You will have to build your app based on the old OS5 APIs.
Download the Blackberry OS5 JDE and compile your app, it could throw a lot of errors, if not, happy days. If yes, then you need to find third party libraries, or write your own, to create similar functionality in OS5 as well. If you would like to keep the OS6 APIs in your code base, you can use preprocessors to create the binaries for different OS versions.
Using a preprocessor, you can use OS6 APIs for OS6 onwards, and other APIs for OS5 onwards.
You can Compile your code with JRE 5.Then you can use this code in any OS 5,6,7.But you can't use JRE 6 in 5.

Will blackberry smartphone apps run on the Playbook?

Will a Blackberry smartphone application written in the Java api work on the Playbook without modification?
According to RIM, once the JDE player is released, they will have to be re-packaged which may require re-compiling, to run on the PlayBook. The same applies to Android applications. In either case you will not be able to download native JDE or Android apps and run them on the PlayBook.
The only application SDK path that allows for BlackBerry Smartphone applications to run both on BBOS, Playbook and BlackBerry 10 is the HTML5 WebWorks SDK
Get started by reading the Getting Started Overview Guide
https://developer.blackberry.com/html5/documentation/what_is_a_webworks_app_1845471_11.html
You may also be interested in cloning bbUI.js, a free ui framework that works across BlackBerry devices going back to OS5. bbUI.js targets platform specific native features, like access to hardware apis, while providing a consistent feel.
blackberry/bbUI.js
https://github.com/blackberry/bbUI.js
Best of luck to you.
Yes, RIM has announced that they will release a virtual machine which will play your existing blackberry app. I'm not sure if developers have to re-submit their blackberry apps though.
Playbook will also support Android apps, but developers will have to recompile their apps and submit those to App World.

Resources