<?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 Location Display Manager &amp; retainState functionality in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-display-manager-retainstate-functionality/m-p/361084#M2361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've noticed that when I save/restore my MapView state it only makes a distinction between start/stop when it should also identify between resume/pause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my use-case&lt;/P&gt;&lt;P&gt;A toggle button that will show/hide current location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Originally, I created my action event to utilize pause/resume as it doesn't make any sense to have to re-create the LocationDisplayManager every time.&amp;nbsp; The problem occurs when my fragment saves it state in onPause( ).&amp;nbsp; With my LocationDisplayManager object paused, MapView.retainState( ) sees it as active and will display the current location when the fragment becomes active again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a workaround, I now call LocationDisplayManager.stop( ) method in onPause( ) and add extra checks and rebuild my LocationDisplayManager when I want to use it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Dec 2014 21:00:35 GMT</pubDate>
    <dc:creator>lqdeffx</dc:creator>
    <dc:date>2014-12-08T21:00:35Z</dc:date>
    <item>
      <title>Location Display Manager &amp; retainState functionality</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-display-manager-retainstate-functionality/m-p/361084#M2361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've noticed that when I save/restore my MapView state it only makes a distinction between start/stop when it should also identify between resume/pause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my use-case&lt;/P&gt;&lt;P&gt;A toggle button that will show/hide current location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Originally, I created my action event to utilize pause/resume as it doesn't make any sense to have to re-create the LocationDisplayManager every time.&amp;nbsp; The problem occurs when my fragment saves it state in onPause( ).&amp;nbsp; With my LocationDisplayManager object paused, MapView.retainState( ) sees it as active and will display the current location when the fragment becomes active again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a workaround, I now call LocationDisplayManager.stop( ) method in onPause( ) and add extra checks and rebuild my LocationDisplayManager when I want to use it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 21:00:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/location-display-manager-retainstate-functionality/m-p/361084#M2361</guid>
      <dc:creator>lqdeffx</dc:creator>
      <dc:date>2014-12-08T21:00:35Z</dc:date>
    </item>
  </channel>
</rss>

