title: how to find the distance between two geopoints?
body: <pre><code>double distance;  
  
  Location locationA = new Location("point A");  
  
  locationA.setLatitude(latA);  
  locationA.setLongitude(lngA);  
  
  Location locationB = new Location("point B");  
  
  locationB.setLatitude(latB);  
  LocationB.setLongitude(lngB);  
  
  distance = locationA.distanceTo(locationB);  
  </code></pre>
  
  <p>the above code is not working and i am getting 0.0 Km as distance? 
  Also in the constructor of the location class, what does the string provider mean. 
  In the above code i am using PointA and PointB as the providers.</p>
  
  <p>why is the above code not working?</p>
  
  <p>thank you in advance.</p>
  
  <p><strong>LOGCAT</strong>
      05-09 17:48:56.144: INFO/current loc(1573): lat 0.0 lng 0.0
      05-09 17:48:56.155: INFO/checklocation loc(1573): lat 54.4288665 lng 10.169366</p>