Inactive Location Agent

I chose the Google location provider: http://developer.android.com/training/location/location-testing.html. I confirmed that it really gives the layout of the places by opening Google Maps. A location tracker on maps moves somewhere around the Google office, indicating that it is responding to a location layout. BUT, when I open my application, I do not get false spots. I keep getting real places. Do I need to make any changes to my application to get the layout of the locations? Another bizarre thing is that even after I closed the fake location provider, Google Maps continues to get the location layout. Only when I restart the phone does it return to real locations. Any ideas how to proceed? Any other false spot testing options?

Tested on MotoG (4.4.2)

Edit:

Test code: https://github.com/nutiteq/hellomap3d/blob/master/HelloMap3D/src/com/nutiteq/hellomap/HelloMap3DActivity.java This is just an example of a nutiteq application. The application works fine, but continues to get real places, even when the provider’s layout works.

There is a standard request requestLocationUpdates, and then onLocationChanged callback implementation.

+4
source share
1 answer

Good, too hasty posting of generosity. This is sorted using the same gps location provider both in the LocationProvider app and in my app.

0
source

Source: https://habr.com/ru/post/1540159/


All Articles