Google Maps uses the GPS as its location provider. It will not show the current location if GPS is disabled.
It is possible to switch to a custom location provider.
For example, here is me traveling in Antarctica:
The attached example uses FusedLocationProvider to inject the location.
The steps to create a custom location source are:
1. Create the LocationSource object with JavaObject.
2. Handle the LocationSource_Event. It will raise when the source is activated.
3. Set the map source by calling setLocationSource.
4. Call LocationChangedListener.onLocationChanged method to inject locations.
These steps are done in the starter service.
You need to open the manifest editor and set your api key.
It is possible to switch to a custom location provider.
For example, here is me traveling in Antarctica:
The attached example uses FusedLocationProvider to inject the location.
The steps to create a custom location source are:
1. Create the LocationSource object with JavaObject.
2. Handle the LocationSource_Event. It will raise when the source is activated.
3. Set the map source by calling setLocationSource.
4. Call LocationChangedListener.onLocationChanged method to inject locations.
These steps are done in the starter service.
You need to open the manifest editor and set your api key.