How to change GPS location icon in Android Studio?

Asked

Viewed 208 times

0

I wanted to know how to change that red icon that marks the location of the GPS to place a picture located on the drawable. I just wanted to know what code I should add to get the suggested result.

The code is as follows::

@Override
public void onMapReady(GoogleMap googleMap) {
    mMap = googleMap;


    // Add a marker in Sydney and move the camera
    //11.456, -78910
    LatLng sydney = new LatLng(-7.937696, -34.897499);
    mMap.addMarker(new MarkerOptions().position(sydney).title("******"));

}

1 answer

0

  • for some reason the application does not open on mobile but I will see the problem in logcat, thank you.

  • Add the log that makes it easier for us to help you.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.