<?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: Switching between two map Activities in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-between-two-map-activities/m-p/253344#M1650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is not supported yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please look at this : &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/48525-Need-best-practice-advice-for-using-several-maps-in-an-Android-app"&gt;http://forums.arcgis.com/threads/48525-Need-best-practice-advice-for-using-several-maps-in-an-Android-app&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jan 2012 20:38:05 GMT</pubDate>
    <dc:creator>SaurabhGupta</dc:creator>
    <dc:date>2012-01-25T20:38:05Z</dc:date>
    <item>
      <title>Switching between two map Activities</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-between-two-map-activities/m-p/253342#M1648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am developing an application which contains two activities, each of which contains a map view.&amp;nbsp; Activity 1 creates and uses its map, starts Activity 2 and calls map.recycle() in onPause before Activity 2 begins.&amp;nbsp; Activity 2 runs, creates and uses its map, and calls map.recycle() in onPause as it finishes.&amp;nbsp; This all works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem comes when Activity 1 resumes.&amp;nbsp; It goes through the process of adding a map layer and a couple of graphics layers to the MapView object, but the map does not appear on the display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I reuse the MapView object as I am attempting to do, or do I need to destroy it completely and create a new one each time Activity 1 resumes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If any of this is unclear, let me know and I'll try to clarify.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Brad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 18:36:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-between-two-map-activities/m-p/253342#M1648</guid>
      <dc:creator>BradFrecker</dc:creator>
      <dc:date>2012-01-13T18:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between two map Activities</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-between-two-map-activities/m-p/253343#M1649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Brad,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;yes you can reuse: save instance state and restore it as u need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To save activity state use &lt;/SPAN&gt;&lt;A href="http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)"&gt;onSaveInstanceState()&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To restore activity state use &lt;/SPAN&gt;&lt;A href="http://developer.android.com/reference/android/app/Activity.html#onRestoreInstanceState(android.os.Bundle)"&gt;onRestoreInstanceState()&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 06:30:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-between-two-map-activities/m-p/253343#M1649</guid>
      <dc:creator>IvanBespalov</dc:creator>
      <dc:date>2012-01-18T06:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Switching between two map Activities</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-between-two-map-activities/m-p/253344#M1650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is not supported yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please look at this : &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/48525-Need-best-practice-advice-for-using-several-maps-in-an-Android-app"&gt;http://forums.arcgis.com/threads/48525-Need-best-practice-advice-for-using-several-maps-in-an-Android-app&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 20:38:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/switching-between-two-map-activities/m-p/253344#M1650</guid>
      <dc:creator>SaurabhGupta</dc:creator>
      <dc:date>2012-01-25T20:38:05Z</dc:date>
    </item>
  </channel>
</rss>

