onPositionUpdate returns same location on Android

Issue is reproducible with example from https://github.com/Estimote/Android-Indoor-SDK

When I run it on any of our phones (Samsung Galaxy Prime (Android 5.1.1), SGS7 (Android 7.0). Moto G4 (android 7.0) and Nexus 6 (Android 7.1)) onPositionUpdate callback returns same X and Y coordinates no matter how I move around

12-12 11:15:46.324 12492-13112/com.estimote.indoorapp D/onPositionUpdate: 2.346812188047276:1.831566022772117 12-12 11:15:47.322 12492-13112/com.estimote.indoorapp D/onPositionUpdate: 2.346812188047276:1.831566022772117 12-12 11:15:48.322 12492-13112/com.estimote.indoorapp D/onPositionUpdate: 2.346812188047276:1.831566022772117 12-12 11:15:49.322 12492-13112/com.estimote.indoorapp D/onPositionUpdate: 2.346812188047276:1.831566022772117 12-12 11:15:50.321 12492-13112/com.estimote.indoorapp D/onPositionUpdate: 2.346812188047276:1.831566022772117 12-12 11:15:51.324 12492-13112/com.estimote.indoorapp D/onPositionUpdate: 2.346812188047276:1.831566022772117

When I go back to room selection and select same room again - position gets changed to my current location, and callback continues to return this new location without change

Same behavior is observed when we run our own java applications, but they do basically same stuff from example app.
I definitely had it working month ago using the same code, but now it is not.

I verified that application get all permissions granted for: ACCESS_FINE_LOCATION ACCESS_COARSE_LOCATION BLUETOOTH and BLUETOOTH_ADMIN (in onRequestPermissionsResult callback)

I created location using Location builder from iOS SDK and Indoor Location app from App Store on iOS correctly show me my location and movements

If anyone is running into the same problem, there’s an issue open on the Android-Indoor-SDK GitHub, feel free to track it and/or add your own comments about Android devices/OS versions affected:

The issue is closed.
I have a problem in onPositionUpdate in setOnPositionUpdateListener.
If I print any Log in onPositionUpdate , it prints the XY coordinates without any problem.
If I do any UI related example Toast or setText for Textview, the XYCoordinates printed only once and no further onPositionUpdate is printed in the Log. Please help.

1 Like

Hello, I also experience the same issue, even with the example. When my tablet (samsung galaxy tab 2, Android 7.0) locks the screen the onPositionUpdate starts working with new values, when I resume the app it works for 10 seconds and then I get the same results. The position gets updated after 10 seconds if I am near a beacon.