<?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 Map disappears when changed tabs in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-disappears-when-changed-tabs/m-p/587554#M4033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an app with tabbed activity. One of the tabs has the arcgis mapview. Initially the mapview with basemap shows up fine. When tab is changed, the mapSurface is destroyed. However, when the map tab is selected again, the log shows map surface re-created, but basemap is not shown. Below are the logs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TAB CHANGED:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;03-20 15:55:46.030: D/ArcGIS.ThreadPool(10965): &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;1798007319,19.133793.194521&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;03-20 15:56:15.580: D/ArcGIS.LifeCycle(10965):&amp;nbsp;&amp;nbsp;&amp;nbsp; MapSurface.destroyContext &amp;lt;start&amp;gt;:GLThread 6584&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;03-20 15:56:15.580: D/ArcGIS.LifeCycle(10965):&amp;nbsp;&amp;nbsp;&amp;nbsp; MapSurface released&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;03-20 15:56:15.580: E/libEGL(10965): call to OpenGL ES API with no current context (logged once per thread)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;03-20 15:56:15.620: D/ArcGIS.LifeCycle(10965):&amp;nbsp;&amp;nbsp;&amp;nbsp; MapSurface.destroyContext &amp;lt;done&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;03-20 15:56:30.120: D/ArcGIS.LifeCycle(10965): &amp;gt;&amp;nbsp; MapSurface.Context created. com.esri.android.map.MapSurface{41b65c40 V.E..... ........ 0,0-1280,671}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MAP TAB RESELECTED:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;03-20 15:56:30.130: D/ArcGIS.LifeCycle(10965):&amp;nbsp;&amp;nbsp;&amp;nbsp; MapSurface SurfaceCreated&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;03-20 15:56:30.130: D/ArcGIS.LifeCycle(10965):&amp;nbsp;&amp;nbsp;&amp;nbsp; MapSurface SurfaceChanged:1280,671&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am suspecting the basemap layers get removed when MapSUrface is released. But no status change event occurs when mapSurface is recreated. Is there a way to listen to mapSurface change events?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kunal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Mar 2014 20:07:18 GMT</pubDate>
    <dc:creator>KunalMehta</dc:creator>
    <dc:date>2014-03-20T20:07:18Z</dc:date>
    <item>
      <title>Map disappears when changed tabs</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-disappears-when-changed-tabs/m-p/587554#M4033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an app with tabbed activity. One of the tabs has the arcgis mapview. Initially the mapview with basemap shows up fine. When tab is changed, the mapSurface is destroyed. However, when the map tab is selected again, the log shows map surface re-created, but basemap is not shown. Below are the logs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TAB CHANGED:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;03-20 15:55:46.030: D/ArcGIS.ThreadPool(10965): &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;1798007319,19.133793.194521&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;03-20 15:56:15.580: D/ArcGIS.LifeCycle(10965):&amp;nbsp;&amp;nbsp;&amp;nbsp; MapSurface.destroyContext &amp;lt;start&amp;gt;:GLThread 6584&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;03-20 15:56:15.580: D/ArcGIS.LifeCycle(10965):&amp;nbsp;&amp;nbsp;&amp;nbsp; MapSurface released&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;03-20 15:56:15.580: E/libEGL(10965): call to OpenGL ES API with no current context (logged once per thread)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;03-20 15:56:15.620: D/ArcGIS.LifeCycle(10965):&amp;nbsp;&amp;nbsp;&amp;nbsp; MapSurface.destroyContext &amp;lt;done&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;03-20 15:56:30.120: D/ArcGIS.LifeCycle(10965): &amp;gt;&amp;nbsp; MapSurface.Context created. com.esri.android.map.MapSurface{41b65c40 V.E..... ........ 0,0-1280,671}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MAP TAB RESELECTED:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;03-20 15:56:30.130: D/ArcGIS.LifeCycle(10965):&amp;nbsp;&amp;nbsp;&amp;nbsp; MapSurface SurfaceCreated&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;03-20 15:56:30.130: D/ArcGIS.LifeCycle(10965):&amp;nbsp;&amp;nbsp;&amp;nbsp; MapSurface SurfaceChanged:1280,671&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am suspecting the basemap layers get removed when MapSUrface is released. But no status change event occurs when mapSurface is recreated. Is there a way to listen to mapSurface change events?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kunal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 20:07:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-disappears-when-changed-tabs/m-p/587554#M4033</guid>
      <dc:creator>KunalMehta</dc:creator>
      <dc:date>2014-03-20T20:07:18Z</dc:date>
    </item>
  </channel>
</rss>

