I tried to add a drawable
in a marker google maps but it doesn't worked.
I followed many tutorials and tried many things without success...
Anyone can help me ?
this is my code :
I think the problem is ".icon(icon)"
public void onMapReady(GoogleMap googleMap) {
mMap = googleMap;
BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.ic_radar);
// Add a marker in Sydney and move the camera
LatLng sydney = new LatLng(-34, 151);
mMap.addMarker(new MarkerOptions().position(sydney).title("Marker in Sydney").icon(icon));
mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));
}