In google maps I want to implement the button myCurrentLocation. In the onCreate method added the following:
googleMap.setMyLocationEnabled(true); And also in AndroidManifest 'e indicated the necessary permission ' s:
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> But still underlines googleMap.setMyLocationEnabled(true); with the following error: 