If you develope an Android app with Android Studio you can send one GPS position using the Android Device Emulator.
Once you have launched the app you are developing in the Android emulator, you have to launch the Android Device Emulator, insert both location points (longitude and latitude) and press the «Send» button. Then your app will receive this coordinate, simulating the Android GPS
But if you want to simulate a route made with your device, with a lot of coordinates, you have to install one plugin, in particular the «Mock Location Plugin» for Android Studio.
First, you have to install the plugin in Android Studio.
You have to go to «Settings…»
Then you have to click on «Plugins», insert the text «gps emulator» in the search box and click on the «Browse» link.
Then you have to click on the «Gps Emulator» plugin and click on the «Install plugin» button.
You have to confirm the download and installation process.
And then you have to restart the «Android Studio» clicking on the «Restart Android Studio» button.
You have to confirm the restart clicking on the «Restart» button.
Now you have the plugin installed in the Android Studio.
Once you have launched the app you are developing in the Android emulator, you have to launch the «Gps Emulator».
Then you have to configure:
- The «Start Location» (latitude and longitude).
- The «End Location» (latitude and longitude).
- The «Steps»: the number of emulated coordinates that the plugin will send to your app.
- The «Time Between Steps».
And you have to clic in the «Start GPS Emulation» button to start sendind the emulated coordinates.