<?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 Leaking LocationListener in LocationDisplayManager in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/leaking-locationlistener-in-locationdisplaymanager/m-p/132036#M967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found out that once the .start() method has been called on the LocationDisplayManager class, the inner LocationListener is not unregistered from the LocationManager even if the stop() and/or pause() methods have been called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This triggers really bad leaking flow leading to an issue, that even the Context itself cannot be garbage collected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to your responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Nov 2014 14:34:54 GMT</pubDate>
    <dc:creator>LukaszSzczyglowski</dc:creator>
    <dc:date>2014-11-28T14:34:54Z</dc:date>
    <item>
      <title>Leaking LocationListener in LocationDisplayManager</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/leaking-locationlistener-in-locationdisplaymanager/m-p/132036#M967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found out that once the .start() method has been called on the LocationDisplayManager class, the inner LocationListener is not unregistered from the LocationManager even if the stop() and/or pause() methods have been called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This triggers really bad leaking flow leading to an issue, that even the Context itself cannot be garbage collected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking forward to your responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Nov 2014 14:34:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/leaking-locationlistener-in-locationdisplaymanager/m-p/132036#M967</guid>
      <dc:creator>LukaszSzczyglowski</dc:creator>
      <dc:date>2014-11-28T14:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Leaking LocationListener in LocationDisplayManager</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/leaking-locationlistener-in-locationdisplaymanager/m-p/132037#M968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am seeing the same issue in my application. A solution is needed ASAP. I am using ArcGIS SDK 10.2.5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 13:03:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/leaking-locationlistener-in-locationdisplaymanager/m-p/132037#M968</guid>
      <dc:creator>GSauers</dc:creator>
      <dc:date>2015-03-17T13:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Leaking LocationListener in LocationDisplayManager</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/leaking-locationlistener-in-locationdisplaymanager/m-p/132038#M969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have confirmed and reproduced the issue and we are working on a fix.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 23:43:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/leaking-locationlistener-in-locationdisplaymanager/m-p/132038#M969</guid>
      <dc:creator>DanO_Neill</dc:creator>
      <dc:date>2015-04-07T23:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Leaking LocationListener in LocationDisplayManager</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/leaking-locationlistener-in-locationdisplaymanager/m-p/132039#M970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue I found is that the LocationDisplayManager was not reallocating resources when .stop() was called.&amp;nbsp; This amounted to ~2MB of memory overhead.&amp;nbsp; The bigger issue was that the app would continue to consume memory.&amp;nbsp; We have a fix that reallocates memory back and ensures the app responds to garbage collection of which it did not before.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the Context not being garbage collected, this is because the Context is tied to the MapView whether directly or in relation to it's corresponding layout. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fix will be in the next minor release ArcGIS Runtime SDK for Android, v10.2.6. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 01:36:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/leaking-locationlistener-in-locationdisplaymanager/m-p/132039#M970</guid>
      <dc:creator>DanO_Neill</dc:creator>
      <dc:date>2015-04-30T01:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Leaking LocationListener in LocationDisplayManager</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/leaking-locationlistener-in-locationdisplaymanager/m-p/132040#M971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, thanks Dan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 11:55:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/leaking-locationlistener-in-locationdisplaymanager/m-p/132040#M971</guid>
      <dc:creator>GSauers</dc:creator>
      <dc:date>2015-04-30T11:55:48Z</dc:date>
    </item>
  </channel>
</rss>

