Port a library written for BB7 to BB10 - blackberry

I have developed an User-Authentication Library on BB7.
It constructs the UI for the Login Screen and authenticate the user from the server after credentials are entered.
I want to know that is there any change present in the BB10 development from BB7 development ? As I want to use this library for my BB10 app also .
Thanks.

There is a series of three (at the moment) articles on porting BlackBerry Java applications to Cascades, if that helps.

Related

BlackBerry OS 6 App Dev

When developing a application for iOS that pulls in a web site, you have a very simple web app wrapper that as far as I know acts like an iframe, pulls in the web site and boom - you have an app.
My understanding is that if done this way you are using a "stripped down" Safari to view the web site in a "app" as it is a web wrapper.
When developing an app for BB OS6, is it the same concept? If I develop a wrapper that says "go fetch site x and display it in this app" is it going to use BB OS6 default browser APIs to render said site?
Also is there links to said API?
If all you want is a container to display Web content I'd highly recommend you use Webworks (or cordova for cross platform) as opposed to Java. WebWorks already creates and sets up the bf2 for you in a tested and proven way.
The equivalent of UIWebView for iOS would be the BlackBerry BrowserField.
If you want some examples of how to use it, I recommend installing the BlackBerry Eclipse plugin. That will install in Eclipse the full BlackBerry Java SDK (e.g. version 6.0, 7.0, etc.), which comes with lots of sample code. From Eclipse, you can then
Import... -> BlackBerry -> Import BlackBerry Samples -> BrowserField2Demo.
Note that you want the BrowserField2Demo, not BrowserFieldDemo!
Or, you can go directly to the github site with BlackBerry sample code.

How to prepare old Blackberry app for BlackBerry 10?

We have a couple of Blackberry apps and are now trying to prepare them for BB 10. These apps are made in Java via Eclipse and/or RIM IDE tool. However, when I went to https://developer.blackberry.com/platforms/bb10, I saw that there is no even a mention of Java SDK. Take a look at image below.
So how am I supposed to update Blackberry app to BB 10? Any ideas?
You have to decide what to do with your applications. If you have an Android version, one option is to repackage the APK to a BAR using the provided tool set so that it will run under the Android player. There are many good Android applications that provide an acceptable or even good user experience this way. Another option is to port your BlackBerry Java application to Android (if there is no existing Android version) then package the Android version for the player. This would also allow you to market the application to Android users. The final option is to port the BlackBerry Java applications to the Native SDK, Cascades, HTML5 or Adobe Air.
The best way forward depends on how tightly integrated into the BB10 system you want to be. While there are facilities provided in BB10 that are the equivalents to those is BlackBerry OS, there have been significant changes required to enable the improvements everyone wants to see on the new platform. If you see BB10 as a significant part of your future business then porting to Cascades would be very worth while.

How to detect that any blackberry application is screen density supportive or not?

I want to develop one application which I will install on my Bold Device.now is it possible for my application to retrieve information regarding application which are installed on my device that these applications can be installed on other devices like Torch/Storm/Tablet phones of blackberry. is it possible? Thanks in advance
Even Java API, with richer than Web-SDK functionality, does not provide such information about installed applications. To inspect all possible actions over installed apps look at CodeModuleManager and ApplicationManager classes from RIM API SDK.

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.

Problem signing BlackBerry apps

I'm making web based applications for BlackBerry using the PhoneGap Framework. I got 3 .CSI key files from the BlackBerry Dev-Center and signed my applications, but when I try to install an application in BlackBerry I get an error with information about signing.
Maybe I am having a problem with signing?
What is the best way to sign applications for Blackberry? Note that I'm not using Eclipse because it has some errors on my computer.
Thanks.
The instructions you were provided would've been the best way to do code signing. If you've lost them, they're on page 8 in How and when to sign.
You do not have to put your apps in App World to share them; however, you would lose the marketing and ease-of-access benefits that BB App world provides.

Resources