Reputation: 8291
Just right after I accept request permission location ACCESS_FINE_LOCATION the location button is showing but not working. I've just pushed it but nothing happens. Where is the blue dot??
In the other hand, when I restart the app the button is working properly.
This is my code just after permissions has ben accepted:
googleMap.setMyLocationEnabled(true);
googleMap.getUiSettings().setMyLocationButtonEnabled(true);
googleMap.getUiSettings().setAllGesturesEnabled(true);
googleMap.getUiSettings().setZoomControlsEnabled(true);
Upvotes: 3
Views: 3126
Reputation: 883
try to set
googleMap.setMyLocationEnabled(true);
googleMap.getUiSettings().setMyLocationButtonEnabled(true);
after accepting the permissions
Upvotes: 2