title: Add "My Location" to Google Maps Fragment
body: <p>I'm trying to add a "My Location" button to my Google Maps fragment inside my app. This is my code so far:</p>
  
  <pre><code>package com.example.sander.app;
  </code></pre>
  
  <p>public class GoogleMaps extends Fragment implements OnMapReadyCallback {</p>
  
  <pre><code>@Nullable
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
      return inflater.inflate(R.layout.fragment_gmaps, container, false);
  }
  
  @Override
  public void onViewCreated(View view, Bundle savedInstanceState) {
      super.onViewCreated(view, savedInstanceState);
  
      MapView mapView = (MapView) view.findViewById(R.id.map);
      mapView.onCreate(savedInstanceState);
  
      mapView.onResume(); // needed to get the map to display immediately
  
      try {
          MapsInitializer.initialize(getActivity().getApplicationContext());
      } catch (Exception e) {
          e.printStackTrace();
      }
      mapView.getMapAsync(this);
  
  }
  
  @Override
  public void onMapReady(GoogleMap googleMap) {
  
      LatLng marker = new LatLng(51.9244201, 4.4777325);
  
      googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(marker, 12));
  
      googleMap.addMarker(new MarkerOptions().title("Testing").position(new LatLng(53.92, 4.47)));
      googleMap.addMarker(new MarkerOptions().title("Hello Google Maps!").position(marker));
  
      if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &amp;&amp; ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
          // TODO: Consider calling
          //    ActivityCompat#requestPermissions
          // here to request the missing permissions, and then overriding
          //   public void onRequestPermissionsResult(int requestCode, String[] permissions,
          //                                          int[] grantResults)
          // to handle the case where the user grants the permission. See the documentation
          // for ActivityCompat#requestPermissions for more details.
          return;
      }
      googleMap.setMyLocationEnabled(true); // This is how I had implemented the setMyLocationEnabled method
      googleMap.getUiSettings().setMyLocationButtonEnabled(true);
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I've already added the permissions to my AndroidManifest.xml, and googleMap.setMyLocationEnable(true); doesn't work. </p>
  
  <p>Can anyone help me to add the button to my Google Maps fragment</p>