title: Android Google Maps current location bearing
body: <p>I'm currently using Google Maps on Android, but I'm not sure how to rotate the map to show the users current facing direction.</p>
  
  <p>When I set:</p>
  
  <pre><code>mMap.setMyLocationEnabled(true);
  </code></pre>
  
  <p>I notice that the current marker has a small bearing arrow (when phone is tilted, etc).  </p>
  
  <pre><code>@Override
  public void onLocationChanged(Location location) {
      handleNewLocation(location);
  }
  
  private void handleNewLocation(Location location) {
      Log.d(TAG, location.toString());
  
      double currentLatitude = location.getLatitude();
      double currentLongitude = location.getLongitude();
  
      LatLng latLng = new LatLng(currentLatitude, currentLongitude);
  
      CameraPosition camPos = new CameraPosition.Builder()
              .target(latLng)
              .zoom(16.0f)
              .bearing(location.getBearing())
              .build();
  
      mMap.animateCamera(CameraUpdateFactory.newCameraPosition(camPos));
  }
  </code></pre>
  
  <p>This successfully updates the markers position on the map based on locations.  However, how can I change the facing direction of the marker by rotating the map, based on the phones yaw tilting.</p>