I have taken the current gps value using the following code.
public class GetGPS implements LocationListener
{
public void onLocationChanged(Location location)
{
}
public void onProviderDisabled(String provider)
{
//alertDialog.showMessage("Please Turn On your GPS", "GPS Turned Off");
}
public void onProviderEnabled(String provider)
{
}
public void onStatusChanged(String provider, int status, Bundle extras)
{
}
}
it works.but the values are 100-200 feet off.i want to know what is the problem?
below link might be helpfull
Google Maps & apps with mapview have different current positions
also try using Criteria.setAccuracy()