<?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: The new LocationDisplayManager, Bugs or Not in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/the-new-locationdisplaymanager-bugs-or-not/m-p/762771#M5359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alaa, have you seen a memory leak with the new LocationDisplayManager? I am experiencing this issue to the point where my application crashes. The listener is not actually unregistered and the fragment remains open, so I have numerous instances of my fragment open.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Mar 2015 14:55:30 GMT</pubDate>
    <dc:creator>GSauers</dc:creator>
    <dc:date>2015-03-17T14:55:30Z</dc:date>
    <item>
      <title>The new LocationDisplayManager, Bugs or Not</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/the-new-locationdisplaymanager-bugs-or-not/m-p/762769#M5357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dears, Can anyone help me with the following scenario...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I use LocationDisplayManager instead of the deprecated LocationService everything works fine but I am having side effects when I am trying to zoom programmatically to locations, the map will always zoom to current location after zooming to the provided location and if I do some panning on the map then try to zoom programmatically to any location the map then will zoom to completely different location which is not even my current location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I guess my question is, should I set some properties first to the LocationDisplayManager and why on earth changing location gots overridden ?!!!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this how I start the LocationDisplayManager&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public void onStatusChanged(Object source, STATUS status) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (source == _mapView &amp;amp;&amp;amp; status == STATUS.INITIALIZED) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; _esriLS = _mapView.getLocationDisplayManager();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; _esriLS.setAutoPanMode(AutoPanMode.OFF);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; _esriLS.start();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 14:49:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/the-new-locationdisplaymanager-bugs-or-not/m-p/762769#M5357</guid>
      <dc:creator>AlaaRasheed</dc:creator>
      <dc:date>2014-03-13T14:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: The new LocationDisplayManager, Bugs or Not</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/the-new-locationdisplaymanager-bugs-or-not/m-p/762770#M5358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The walkaround provided in this post (&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/104596-Issues-related-to-animations-in-10.2.2-sdk"&gt;http://forums.arcgis.com/threads/104596-Issues-related-to-animations-in-10.2.2-sdk&lt;/A&gt;&lt;SPAN&gt;) has solved my problem, I still think that there is something in the displaye manager that causing these side effects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have modify my zoom function putting the zoom line inside a runnable&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; public void zoomToPoint(double longitude, double latitude, boolean draw){&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; final Point pnt = GeometryEngine.project(longitude, latitude, _mapView.getSpatialReference());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if(draw)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; DrawMarker(pnt);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; final int res = draw ? 1 : 2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; new Handler().postDelayed(new Runnable() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; public void run() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _mapView.zoomToResolution(pnt, res);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }, 1500);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 11:55:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/the-new-locationdisplaymanager-bugs-or-not/m-p/762770#M5358</guid>
      <dc:creator>AlaaRasheed</dc:creator>
      <dc:date>2014-03-15T11:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: The new LocationDisplayManager, Bugs or Not</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/the-new-locationdisplaymanager-bugs-or-not/m-p/762771#M5359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alaa, have you seen a memory leak with the new LocationDisplayManager? I am experiencing this issue to the point where my application crashes. The listener is not actually unregistered and the fragment remains open, so I have numerous instances of my fragment open.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 14:55:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/the-new-locationdisplaymanager-bugs-or-not/m-p/762771#M5359</guid>
      <dc:creator>GSauers</dc:creator>
      <dc:date>2015-03-17T14:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: The new LocationDisplayManager, Bugs or Not</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/the-new-locationdisplaymanager-bugs-or-not/m-p/762772#M5360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/42318"&gt;Alaa Rasheed&lt;/A&gt;​ What version of the SDK were you using orginally?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/34064"&gt;G Sauers&lt;/A&gt;​ We will have a fix for that in the next release, but I am concerned that your app is crashing as the memory issue in 10.2.5 is ~2MB which should not crash your app.&amp;nbsp; I would be interested in more of what your app does to see if we can optimize it in other ways. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 01:48:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/the-new-locationdisplaymanager-bugs-or-not/m-p/762772#M5360</guid>
      <dc:creator>DanO_Neill</dc:creator>
      <dc:date>2015-04-30T01:48:21Z</dc:date>
    </item>
  </channel>
</rss>

