i tried using
MarkerOptions marker = new MarkerOptions().position(geom.get(0)).title("hai how are bgdj");
map.addMarker(marker);
where geom.get(0) is the LatLng and map is google map
i tried using
MarkerOptions marker = new MarkerOptions().position(geom.get(0)).title("hai how are bgdj");
map.addMarker(marker);
where geom.get(0) is the LatLng and map is google map
Try this,
mMap.addMarker(new MarkerOptions()
.position(MELBOURNE)
.title("Melbourne")
.snippet("Population: 4,137,400")
.icon(BitmapDescriptorFactory.fromResource(R.drawable.arrow)));
MarkerOptions marker = new MarkerOptions().position(geom.get(0)).title("hai how are bgdj");
map.addMarker(marker);
Marker mk = map.addMarker(marker);
mk.showInfoWindow();
where geom.get(0) is the LatLng and map is google map
thanks guys, this worked for me.
Marker marker = myMap.addMarker(new MarkerOptions()
.position(currentLocation)
.title("Name")
.snippet("pranav")
.icon(BitmapDescriptorFactory
.fromResource(R.drawable.marker)));
marker.showInfoWindow();