I've seen some application like gpsspoofer and fake gps apps that set location to spoof wrong location but my app to get right location please give suggestions.
My another problem
Loc.requestLocationUpdates(Provider.get(i), 600000, 1000, new LocationListener() {
@Override
public void onStatusChanged(String provider, int status,Bundle extras) {
/// some thing
}
@Override
public void onProviderEnabled(String provider) {
/// some thing
}
@Override
public void onProviderDisabled(String provider) {
/// some thing
}
@Override
public void onLocationChanged(Location location) {
/// some thing
}
});
}
My question is if i have already set location updates for 600000 miliseconds then why onLocationChanged(Location location) is called every small interval which is less than both 1000 and 6000000