title: Rotate marker as per user direction on Google Maps V2 Android
body: <p>I want to rotate marker as per bearing or sensor value received from Accelerometer to show the user where actually he is moving. I have set marker icon and flat value to true but its not working as required.</p>
  
  <pre><code>mCurrentLocationMarker.position(new LatLng(
                              LocationUtils.sLatitude, LocationUtils.sLongitude));
                      mCurrentLocationMarker.icon(icon);
                      mCurrentLocationMarker.flat(true);
                      mCurrentLocationMarker.rotation(LocationUtils.sBearing);
  
                      if (currentMarker != null) {
                          currentMarker.setPosition(new LatLng(
                                  LocationUtils.sLatitude,
                                  LocationUtils.sLongitude));
                      } else {
                          currentMarker = mGoogleMap
                                  .addMarker(mCurrentLocationMarker);
                      }
                      animateCameraTo(true);
  </code></pre>
  
  <p>I have used this <img src="https://i.stack.imgur.com/bmznk.png" alt="marker"> as marker.</p>
  
  <p>I don't know why its not rotating as per user's direction. If anyone has any idea please kindly help me where i am making mistake.</p>
  
  <p>LocationUtils.sBearing is the value of Bearing which i received from onLocationChanged or accelerometer.</p>
  
  <p><strong>Basically I want to make my marker same as google maps marker which shows user in which direction they are moving or turning.</strong></p>