<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why doesn't LocationDisplay update often? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-doesn-t-locationdisplay-update-often/m-p/363710#M2388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I do believe the accuracy of the locations that I and customers are receiving makes a difference.&amp;nbsp; I don't have any control over what that accuracy is and whether the reported accuracy is actually real or bogus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am all in favor of filtering, and in fact the dots you see are filtered using a Kalman filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know the reasoning behind that filter? Is this a mathematically proven way to do so? Has it proven to be helpful and user friendly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End users are simply seeing it as a bug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I take it I have to reinvent the wheel with a LocationDataSource if I don't want this filtering?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Mar 2020 17:07:33 GMT</pubDate>
    <dc:creator>NathanMellor</dc:creator>
    <dc:date>2020-03-13T17:07:33Z</dc:date>
    <item>
      <title>Why doesn't LocationDisplay update often?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-doesn-t-locationdisplay-update-often/m-p/363708#M2386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following is how I am initializing the LocationDisplay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Criteria criteria = new Criteria(); criteria.setAccuracy(Criteria.ACCURACY_FINE); AndroidLocationDataSource androidLocationDataSource = new AndroidLocationDataSource(mContext, criteria, 250L, 1L); mLocationDisplay.setLocationDataSource(androidLocationDataSource); mLocationDisplay.setWanderExtentFactor(0);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You'd think this would mean it updates up to four times a second, but it doesn't.&lt;/P&gt;&lt;P&gt;Especially after resuming the activity, it updates whenever it feels like it.&lt;/P&gt;&lt;P&gt;Sometimes that's two seconds, sometimes five seconds, sometimes 15 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an illustration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Pointer behind a track." class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/484452_Screenshot_20200307-141518_BackCountry Navigator XE.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A service running in the background IS getting the location every second through locationManager.&lt;/P&gt;&lt;P&gt;The arrow just isn't keeping up.&lt;/P&gt;&lt;P&gt;It will catch up to the track once in a while.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I make the LocationDisplay behave decently?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could create my own LocationDataSource - maybe.&lt;/P&gt;&lt;P&gt;But it would be a major pain because you don't allow subclassing and your code is very obscure.&lt;/P&gt;&lt;P&gt;And how do I know the bottleneck isn't somewhere else besides the LocationDataSource?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Mar 2020 02:41:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-doesn-t-locationdisplay-update-often/m-p/363708#M2386</guid>
      <dc:creator>NathanMellor</dc:creator>
      <dc:date>2020-03-08T02:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't LocationDisplay update often?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-doesn-t-locationdisplay-update-often/m-p/363709#M2387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;SPAN style="background-color: #f6f6f6;"&gt;AndroidLocationDataSource&lt;/SPAN&gt;&amp;nbsp;receives location updates form&amp;nbsp;the Android framework's LocationManager. Internally it calls &lt;A href="https://developer.android.com/reference/android/location/LocationManager#requestLocationUpdates(java.lang.String,%20long,%20float,%20android.location.LocationListener)"&gt;LocationManager.requestLocationUpdates() &lt;/A&gt;passing in the parameters that you have provided to the &lt;SPAN style="background-color: #f6f6f6;"&gt;AndroidLocationDataSource&amp;nbsp;&lt;/SPAN&gt;constructor. The &lt;SPAN style="background-color: #f6f6f6;"&gt;AndroidLocationDataSource&amp;nbsp;&lt;/SPAN&gt;does some additional filtering on these location updates. Any location that&amp;nbsp;is more than twice as inaccurate as the previous location's horizontal accuracy (&lt;A href="https://developer.android.com/reference/android/location/Location#getAccuracy()"&gt;Location.getAccuracy()&lt;/A&gt;) is ignored. Please check the accuracy of the locations you are receiving and see if this criteria might apply, thus you won't see more frequent location updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, the `minTimeMS` parameter of&amp;nbsp;&lt;A href="https://developer.android.com/reference/android/location/LocationManager#requestLocationUpdates(java.lang.String,%20long,%20float,%20android.location.LocationListener)" style="color: #2989c5; text-decoration: none;"&gt;LocationManager.requestLocationUpdates()&lt;/A&gt;&amp;nbsp;doesn't guarantee that you will get updates every 250ms. See documentation:&lt;BR /&gt;&lt;EM style="background-color: #ffffff; color: #202124; "&gt;The elapsed time between location updates will never be less than this parameter, although it may be more depending on location availability and other factors.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #202124; background-color: #ffffff;"&gt;Gunther&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:20:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-doesn-t-locationdisplay-update-often/m-p/363709#M2387</guid>
      <dc:creator>GuntherHeppner</dc:creator>
      <dc:date>2020-03-12T13:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't LocationDisplay update often?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-doesn-t-locationdisplay-update-often/m-p/363710#M2388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I do believe the accuracy of the locations that I and customers are receiving makes a difference.&amp;nbsp; I don't have any control over what that accuracy is and whether the reported accuracy is actually real or bogus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am all in favor of filtering, and in fact the dots you see are filtered using a Kalman filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know the reasoning behind that filter? Is this a mathematically proven way to do so? Has it proven to be helpful and user friendly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End users are simply seeing it as a bug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I take it I have to reinvent the wheel with a LocationDataSource if I don't want this filtering?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2020 17:07:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-doesn-t-locationdisplay-update-often/m-p/363710#M2388</guid>
      <dc:creator>NathanMellor</dc:creator>
      <dc:date>2020-03-13T17:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't LocationDisplay update often?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-doesn-t-locationdisplay-update-often/m-p/363711#M2389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is currently no way to&amp;nbsp;configure the filter of an AndroidLocationDataSource as a user. Your only way to work around this right now is to implement your own LocationDataSource. We will consider configuration of the filter as an enhancement for a future release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gunther&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2020 13:19:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-doesn-t-locationdisplay-update-often/m-p/363711#M2389</guid>
      <dc:creator>GuntherHeppner</dc:creator>
      <dc:date>2020-03-16T13:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't LocationDisplay update often?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-doesn-t-locationdisplay-update-often/m-p/363712#M2390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am seeing similar behavior with LocationDisplay specifically on Android 10 devices.&amp;nbsp; Essentially what happens is that if a device is stationary for something like 5+ minutes LocationDisplay listener stops responding (LocationDisplay.LocationChangedListener()).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I move the device or pan on the mapview then I start getting LocationDisplay updates again.&amp;nbsp; I have verified that Android LocationManager on change events are still hitting even though the ESRI LocationDisplay listener no longer responds.&amp;nbsp; What gives here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2020 17:58:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-doesn-t-locationdisplay-update-often/m-p/363712#M2390</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-07-06T17:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't LocationDisplay update often?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-doesn-t-locationdisplay-update-often/m-p/363713#M2391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to add to this I put a timer on this and what happens every time is if the device is not moved the locationDisplay will only update for 64 seconds.&amp;nbsp; If accelerometer goes it will go for exactly another 64 seconds.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2020 00:05:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-doesn-t-locationdisplay-update-often/m-p/363713#M2391</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-07-07T00:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't LocationDisplay update often?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-doesn-t-locationdisplay-update-often/m-p/363714#M2392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the device is stationary, would you expect&amp;nbsp;that the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;LocationChangedListener still fires, even if the location doesn't actually change?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Gunther&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2020 16:27:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-doesn-t-locationdisplay-update-often/m-p/363714#M2392</guid>
      <dc:creator>GuntherHeppner</dc:creator>
      <dc:date>2020-07-09T16:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't LocationDisplay update often?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-doesn-t-locationdisplay-update-often/m-p/1016255#M5403</link>
      <description>&lt;P&gt;Hi Gunther, The weird thing about this is I do not see this behavior in Field Maps application on Android.&amp;nbsp; Even if device is stationary for a long period of time the GPS Cursor keeps updating.&amp;nbsp; How did Doug Morgenthaler and crew get around this?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 03:02:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-doesn-t-locationdisplay-update-often/m-p/1016255#M5403</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-13T03:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't LocationDisplay update often?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-doesn-t-locationdisplay-update-often/m-p/1016265#M5404</link>
      <description>&lt;P&gt;On further investigation the official GitHub ESRI Sample project for 100.9 (display-device-location.java) Android exhibits the same behavior so this has got to be a bug. If I add an Android LocationManager LocationListener it continues to update every second, even after device is stationary for over 64 seconds. This definitely seems wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 04:38:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-doesn-t-locationdisplay-update-often/m-p/1016265#M5404</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-13T04:38:50Z</dc:date>
    </item>
  </channel>
</rss>

