<How to continuously mock a GPS location on Androi...
# stackoverflow
r
How to continuously mock a GPS location on Android? How do I continuously mock a location on Android in 2023? The following code does not work. Only thing that changed is that the blue dot in Google Maps becomes grey instead of blue at the real location. I added all the needed permissions and selected my app as mock location in Developer Settings. Other answers on SO are now outdated due to Google introducing new updates. import android.location.Location import android.os.Build import android.os.Bundle import android.os.SystemClock import...