Android Question App mock or fake location

AlpVir

Well-Known Member
Licensed User
Longtime User
Does anyone know of an app that allows you to manage "mock locations" (or fake locations) with Android 13 (and later) and upload a GPX track, fooling other apps into thinking they're following that route and not the GPS satellite system?
I tried to develop one, but gave up due to the limitations of the new API and Google restrictions.
In fact, if anyone can give me some info, I might resume the project I abandoned.
Again: with the ability to upload a GPX track.
Thanks for your attention.
 

Sandman

Expert
Licensed User
Longtime User
I can't help you if you need to do this in a real device. But if it's for development purposes you can use Android emulator for this. Works fine.
 
Upvote 0

AlpVir

Well-Known Member
Licensed User
Longtime User
It's for development, but I haven't figured out how to use the emulator.
Do I upload the GPX track to the emulator (with which app?) and then view it in real time on my smartphone connected (via USB cable) to the computer running B4A with the app I'm developing ?
 
Upvote 0

Sandman

Expert
Licensed User
Longtime User
You sound a little bit confused. You're meant to use the emulator for the development of the app, not just for broadcasting a fake location. (Remember, if you prefer using a real device you can do so. But for testing locations, the emulator is a great option.)

Install Android Studio and use the emulators in there. It's very user friendly and will work with B4A without any changes to anything.

This is the setting you want, it's available when you have an emulator up and running. Press the ••• down in the command window next to the emulator screen to open this.

1764054609605.png
 
Upvote 0
Top