If you require high accuracy for your project you can use external GNSS devices to connect to your mobile device. In this section we explain how to use mock location do be able to use an external GNSS device.
To use mock location on an Android device, follow these steps:
Enable Developer Options:
a. Go to your device's Settings.
b. Scroll down and tap on "About phone" or "About device."
c. Locate the "Build number" or "Build version" entry.
d. Tap on it seven times continuously. You will see a message indicating that you are now a developer.
Access Developer Options:
a. Go back to the main Settings menu.
b. Scroll down, and you should see a new option called "Developer Options."
c. Tap on "Developer Options."
Enable Mock Locations:
a. In the Developer Options menu, scroll down until you find "Mock location app" or "Select mock location app."
b. Tap on it, and you will see a list of installed apps that can be used for mock location.
c. Select the desired app you want to use for mock location.
Configure Mock Location App:
a. Launch the selected mock location app.
b. In the app settings, you can set a specific location or import a GPX file to simulate movement along a predetermined route.
c. Once the mock location is set, your Android device will use that location for applications that rely on GPS information.
It's important to note that the steps to enable Developer Options may vary slightly depending on your Android device model and software version. If you encounter any difficulties or cannot find the Developer Options menu, you may need to refer to the user manual or search for specific instructions for your particular device online.
Please exercise caution when using mock location, as it can affect location-based services and may be subject to certain restrictions or misuse in some cases.