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

Android™ Runtime Development

Reply
Developer
rakesh86shankar
Posts: 988
Registered: ‎05-22-2009
My Device: Not Specified

Doubts regarding showing google maps in Browser

Hi,

 

 

I am trying to  using google maps to show location and route map in the application.

 

 

I tried using 

		String uri2 = "geo:"+desLatitude + "," + desLongitude;
		try{

			startActivity(new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri2)));
		}catch(Exception e){
			System.out.println("Exception Occuring at MapView>>>>>>>>>>>>> "+e);
		}

 Similarly Can i show the route maps along with label information on it?

 

Any Information regarding this will be useful.

 

 

Thanks

Rakesh 

Please use plain text.
Developer
rakesh86shankar
Posts: 988
Registered: ‎05-22-2009
My Device: Not Specified

Re: Doubts regarding showing google maps in Browser

Hi,

 

I got the code as below

 

 

 

String uri = "http://maps.google.com/maps?daddr="+25.195000+","+55.678711+"&saddr="+desLatitude+","+desLongitude;
try{
//startActivity(new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri)));
startActivity(new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri)));
}catch(Exception e){
System.out.println("Exception Occuring at MapView>>>>>>>>>>>>> "+e);
}

 

But i am getting the weird result as show in below pic.Have you guys faced similar sort of issue

 

IMG_00000103.png

 

 

Thanks

Rakesh 

Please use plain text.