I am working on an Android application where I need to show many organization offices on a map. I use a web service to fetch this data and fill in the place markers on the map. I used MapActivity, MapView and Itemized overlays, and all this works well.
The disadvantage of this approach is that I do not get additional useful menu options that occur when I use the built-in map application. I know how to call and use Intent to run goggle maps from an application, but there are some limitations associated with adding multiple markers using my location data. I use the following code to add a place marker at a specific latitude and longitude.
Intent searchAddress = new Intent(Intent.ACTION_VIEW,
Uri.parse("geo:0,0?q=48.19858,16.37164 (My Place)"));
startActivity(searchAddress);
I have more than once location data (latitude, longitude and description) that I need to add as a marker for a place or pin on the map. The GEO URI scheme used to invoke the embedded map application does not provide sufficient flexibility to add more than one token. The following are possible geo-URIs.
a) geo:latitude,longitude
b) geo:latitude,longitude?z=zoom
c) geo:0,0?q=my+street+address
d) geo:0,0?q=business+near+city