How can i show blackberry map in my application? - blackberry

I want to display Blackberry map in my application in my application.Can anyone tell me how to display the blackberry map in my application ?

Since OS 4.5 there is net.rim.device.api.lbs.MapField which allows you to put Blackberry Maps in a field.
Another option is invoking the Blackberry Maps application.

Related

IBM Worklight - Using the camera in BlackBerry

I am developing an image-scanning application for BlackBerry. The application takes the user to a success page if the correct image is scanned and a failure page is shown on scanning an incorrect image.
I am using the IBM Worklight framework for developing this app.
My question is: How can I open camera for scanning in BlackBerry?
I have developed the same application for iOS using Worklight. In iOS I've used this JavaScript syntax:
WL.native.show(arg1, arg2, arg3);
So I want to know what will be the syntax for opening camera/native page in the case of BlackBerry.
Just to make things clearer, you do not use WL.NativePage.show in order to use the camera in an iOS device. For that you use the Camera API provided by Apache Cordova.
WL.NativePage.show is meant to transition from a WebView to a native page.
You can, however, of course, use it to pass parameters and do whatever you want on the native side and then return to the WebView...
WL.NativePage.show is available only for iOS and Android.
Anyway,
In BlackBerry WebWorks apps (the type of BlackBerry apps supported in Worklight) you have several options:
Use the Camera API provided by BlackBerry
Use the Camera API provided by Apache Cordova
Worklight currently supports Cordova 2.3 (in Worklight 5.0.6.x) and Cordova 2.6 (in Worklight 6.0).

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.

web-page field for j2me blackberry app

Can I integrate a standard BlackBerry web-browser in my BlackBerry application? Similar to embedding Internet Explorer in a standalone desktop application on C#.
I think you are looking for the BrowserField, which lets you embed a browser within your java-me app.

Problem in starting blackberry Maps in Simulator

i am creating simple application for showing Blackberry map in Blackberry.
i was unable to open BB Map through my app.
so that i try to open inbuilt Map App that is showing following image
i check my MSD setting and my internet is working perfect and i can browse from BB Browser
i am using 9530-Verizon-4.7.0.75
what could be problem??? How can i start BB Map in my Simulator??
The problem has to do with rendering issue in simulator. I've been through this when developing a map based app. Map would not render and would show green field.
This is the official response I got from RIM when contacted with the issue:
Simulator - Blackberry Maps Green Background Issue
Resolution: Advised customer that BlackBerry Maps functionality has
been inconsistent on device simulators. The best method of conducting
this testing would be to test on a physical device.
After trying all possible solutions, I gave up. Note that the issue doesn't occur on all systems. If you have access to any other system, try on it. May be you get lucky.
On the simulator phone go into the wifi settings and select a network to connect to. After that you should be able to use the web browser and map applications without problem.

plugin development in blackberry for blackberry mail client..?

I want to add an extra menu item in the blackberry default mail client application..
is there any way to develop this like a plugin..?
Yes, it is possible to develop this via a BlackBerry Java app - see the ApplicationMenuItemRepository class.

Resources