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

Java Development

Reply
New Contributor
Posts: 6
Registered: ‎08-27-2011
My Device: 9300

Display Position on the Map

[ Edited ]

Hi All,

I am working on application where I need to show a predefined position on the BB map,

But the issue is that Only white Screen gets displayed on Simulator as well as on device.
Please tell me if I have to download any Maps for Device as well as Simulator to display Map

Or Am i doing something wrong in the coding?

 

I am using following Code

 

String lati = "19.154898"

String longi ="72.831802"

 
          MapView mapView = new MapView();
            double lat=Double.parseDouble(lati);
            System.out.println("String is"+lat);
            int latInt=(int)lat;
            System.out.println("String is"+latInt);
           
            double lot=Double.parseDouble(longi);
            int lotInt=(int)lot;           
            mapView.setLatitude(latInt);
            mapView.setLongitude(lotInt);
           mapView.setZoom(2);

            MapsArguments mapsArgs = new MapsArguments(mapView);
            Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, mapsArgs);
        

Thanks in Advance.

 

Regards,

Laxmikant

Trusted Contributor
Posts: 112
Registered: ‎05-20-2011
My Device: 9800

Re: Display Position on the Map

[ Edited ]

yes you need to download blackberryMap application from this url to ur mobile

 

 Download from your BlackBerry smartphone.

New Contributor
Posts: 6
Registered: ‎08-27-2011
My Device: 9300

Re: Display Position on the Map

Thanks for reply,

I have downloaded and istalled it on my BB device..

Still it shows the white screen with message of downloading only...

but it doesnt display Maps.

I am running my application on wifi..does Map need home network is this the case?

Also I have tried to run the Maps saperately but still it shows the white screen

Trusted Contributor
Posts: 112
Registered: ‎05-20-2011
My Device: 9800

Re: Display Position on the Map

you need to download blackberry map application before you run this application

download that to ypur phone next install this application then it will show

New Contributor
Posts: 6
Registered: ‎08-27-2011
My Device: 9300

Re: Display Position on the Map

yes...Govind already downloaded and installed BB map. But BB map does not show any thing for India region

 

is there any BB map for India?