title: Android onLocationChanged with Direction using Google Map Api v2
body: <p>I am making a tourist map for android with Google Map Markers and Polylines and I succeeded in doing that but now i need to add something that can make my app more friendly user. so I wanted to put this feature to my app. </p>
  
  <p>Something like that.</p>
  
  <p><a href="https://i.stack.imgur.com/fzrga.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fzrga.png" alt="enter image description here"></a></p>
  
  <p>with live update when the user move. </p>
  
  <p>Anyhow this my app</p>
  
  <p><a href="https://i.stack.imgur.com/inCSY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/inCSY.png" alt="enter image description here"></a></p>
  
  <p>I don't know how to start on that placing DIRECTION. anyone can help me?</p>
  
  <p>Tried using this method but i failed.</p>
  
  <p>`
      @Override
      public void onLocationChanged(Location location) {
          // Getting latitude of the current location
          double latitude = location.getLatitude();</p>
  
  <pre><code>    // Getting longitude of the current location
      double longitude = location.getLongitude();
  
      // Creating a LatLng object for the current location
      LatLng latLng = new LatLng(latitude, longitude);
  
      // Showing the current location in Google Map
      googleMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));
  
      // Zoom in the Google Map
      googleMap.animateCamera(CameraUpdateFactory.zoomTo(18));
  
  
  
      start = latLng;
  
      Log.d("Location Changed: ", latLng.toString());
      //etLog.append("Location Changed: " + latLng.toString() + System.getProperty("line.separator"));
  }
  </code></pre>
  
  <p>`</p>