3 ms·
On Android, in Developer Settings, it's possible to register an app as a Mock Location provider. I'm not sure the interface your app needs to surface to show up
by AlphaWeaver 4y ago
On Android, in Developer Settings, it's possible to register an app as a Mock Location provider. I'm not sure the interface your app needs to surface to show up in that list for selection, but in theory that API existing means there's a potential path for this.
Your app could interface with more accurate external sensors, and then set the phone's GPS fix to be what the sensors read. Assuming that the issue is lack of accuracy at the sensor level and not lack of precision at the software / API level.
- uneekname 4y agoThis is the way. I had a lot of success using Mock Location for a mapping project this spring. I'm pretty sure mapping applications have to explicitly allow it, though. For some reason Google Maps refused to acknowledge my mock location IIRC. But I've never had issues with OSM mapping apps.