A simple solution would be to capture the user's location every minute and check the distance traveled using the Location class of Android, 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 distance traveled by a person at 10 km / h in 1 minute), this distance is counted.