A simple solution would be to capture the user’s location every minute and check the distance traveled using the Android Location class, as shown in the code below.
Location localizacaoA = new Location("Ponto A");
localizacaoA.setLatitude(latA);
localizacaoA.setLongitude(lngA);
Location localizacaoB = new Location("Ponto B");
localizacaoB.setLatitude(latB);
localizacaoB.setLongitude(lngB);
float distancia = localizacaoA.distanceTo(localizacaoB); // Em metros
If the distance in this period was less than 180 meters (approximate value of the distance traveled by a person at 10 km/h in 1 minute), this distance is accounted for.