<?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: Using MapView in a Fragment redownload tiles in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/using-mapview-in-a-fragment-redownload-tiles/m-p/255206#M1669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think all this solutions are not helpful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 1. You can pass all variables between two Activities, but the MapView restarts and all the connected layers reloads the Data. I can't prevent the reload of data in the MapView, I can set the same center, the same leve, the same renderer, etc. as before, but all will reload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 2. You can block some restarts with this line, but not all, e.g. Low Memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards and thanks,&lt;/P&gt;&lt;P&gt;Cesar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Feb 2016 11:07:29 GMT</pubDate>
    <dc:creator>CesarRevilla</dc:creator>
    <dc:date>2016-02-29T11:07:29Z</dc:date>
    <item>
      <title>Using MapView in a Fragment redownload tiles</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/using-mapview-in-a-fragment-redownload-tiles/m-p/255204#M1667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, im using a Fragment to show the MapView. I do this because the "device configuration changed" event destroy the MainActivity and I don't want to recreate the wohle App Objects after this event. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new created MainActivity (after the "device configuration changed" event ) can fetch the old Fragment with the MapView, but the original MapView cant be showed in the new Activity. Its needed to create a new MapView (with a new context) and return a new View for the new Activity. Unfortunately the new MapView needs redownload all tiles. Can this behavior be avoided? Can the old MapView object be used with the new Activity?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Cesar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 11:20:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/using-mapview-in-a-fragment-redownload-tiles/m-p/255204#M1667</guid>
      <dc:creator>CesarRevilla</dc:creator>
      <dc:date>2016-02-10T11:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using MapView in a Fragment redownload tiles</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/using-mapview-in-a-fragment-redownload-tiles/m-p/255205#M1668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cesar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's a help topic that discusses a few options for exactly this situation - &lt;A href="https://developers.arcgis.com/android/guide/handle-device-configuration-changes.htm" title="https://developers.arcgis.com/android/guide/handle-device-configuration-changes.htm"&gt;Handle device configuration changes—ArcGIS Runtime SDK for Android | ArcGIS for Developers&amp;nbsp; .&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like you probably want to choose between options 1 and 2, depending on your specific requirements and what your app is doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Shelly &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 15:10:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/using-mapview-in-a-fragment-redownload-tiles/m-p/255205#M1668</guid>
      <dc:creator>ShellyGill1</dc:creator>
      <dc:date>2016-02-23T15:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using MapView in a Fragment redownload tiles</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/using-mapview-in-a-fragment-redownload-tiles/m-p/255206#M1669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think all this solutions are not helpful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 1. You can pass all variables between two Activities, but the MapView restarts and all the connected layers reloads the Data. I can't prevent the reload of data in the MapView, I can set the same center, the same leve, the same renderer, etc. as before, but all will reload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 2. You can block some restarts with this line, but not all, e.g. Low Memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards and thanks,&lt;/P&gt;&lt;P&gt;Cesar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 11:07:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/using-mapview-in-a-fragment-redownload-tiles/m-p/255206#M1669</guid>
      <dc:creator>CesarRevilla</dc:creator>
      <dc:date>2016-02-29T11:07:29Z</dc:date>
    </item>
  </channel>
</rss>

