<?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 How to save screenshot of MapView in android application in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-save-screenshot-of-mapview-in-android/m-p/534232#M3612</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" height="403" src="https://community.esri.com/legacyfs/online/136827_pastedImage_0.png" style="height: 403px; width: 226.842px;" width="227" /&gt;&lt;/P&gt;&lt;P&gt;In android application when i take screenshot of the screen the mapview but it is showing blank. But when i draw something on mapview screen using custom control then the screen shows like the above screenshot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Nov 2015 15:47:56 GMT</pubDate>
    <dc:creator>sujeetyadav</dc:creator>
    <dc:date>2015-11-02T15:47:56Z</dc:date>
    <item>
      <title>How to save screenshot of MapView in android application</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-save-screenshot-of-mapview-in-android/m-p/534232#M3612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" height="403" src="https://community.esri.com/legacyfs/online/136827_pastedImage_0.png" style="height: 403px; width: 226.842px;" width="227" /&gt;&lt;/P&gt;&lt;P&gt;In android application when i take screenshot of the screen the mapview but it is showing blank. But when i draw something on mapview screen using custom control then the screen shows like the above screenshot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 15:47:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-save-screenshot-of-mapview-in-android/m-p/534232#M3612</guid>
      <dc:creator>sujeetyadav</dc:creator>
      <dc:date>2015-11-02T15:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to save screenshot of MapView in android application</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-save-screenshot-of-mapview-in-android/m-p/534233#M3613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might be device dependent (i assume this screenshot is from a device, or is it from the emulator?). Can you confirm the device, os version and sdk version you are using please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using the devices screenshot implementation or writing this yourself in code? if you are writing your own code be aware that the mapview is implemented as a GLSurfaceView, see this stackoverflow post for good information on implementing this:&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/27817577/android-take-screenshot-of-surface-view-shows-black-screen" title="http://stackoverflow.com/questions/27817577/android-take-screenshot-of-surface-view-shows-black-screen"&gt;surfaceview - Android Take Screenshot of Surface View Shows Black Screen - Stack Overflow&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 20:19:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-save-screenshot-of-mapview-in-android/m-p/534233#M3613</guid>
      <dc:creator>WillCrick</dc:creator>
      <dc:date>2015-11-02T20:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to save screenshot of MapView in android application</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-save-screenshot-of-mapview-in-android/m-p/534234#M3614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Device : Samsung Note 2 and Motorola e&lt;/P&gt;&lt;P&gt;OS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.4.2 kitkat&lt;/P&gt;&lt;P&gt;Android SDK&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For implementing the screenshot functionality i have implemented my own code.&lt;/P&gt;&lt;P&gt;Please suggest me the code for taking screenshot of mapview in android.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;sujeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 10:50:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-save-screenshot-of-mapview-in-android/m-p/534234#M3614</guid>
      <dc:creator>sujeetyadav</dc:creator>
      <dc:date>2015-11-03T10:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to save screenshot of MapView in android application</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-save-screenshot-of-mapview-in-android/m-p/534235#M3615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at this a little more i think there may be a solution. The stackoverflow post above would only work if you could get hold of the OpenGL SurfaceView itself, which we dont expose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, we do provide a method to get the current mapviews image which you can combine with the top level views image returned from the normal view.getDrawingCache method which you have posted above (this is actually what you would have to do if you did get an image from the SurfaceView anyway). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming you are using our 10.2.7 release (not the quartz beta) you can do this with the MapView.getDrawingMapCache() method, here is the doc:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopersdev.arcgis.com%2Fandroid%2Fapi-reference%2Freference%2Fcom%2Fesri%2Fandroid%2Fmap%2FMapView.html%23getDrawingMapCache%28float" rel="nofollow" target="_blank"&gt;https://developersdev.arcgis.com/android/api-reference/reference/com/esri/android/map/MapView.html#getDrawingMapCache(float&lt;/A&gt;&lt;SPAN&gt;, float, int, int)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 02:52:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-save-screenshot-of-mapview-in-android/m-p/534235#M3615</guid>
      <dc:creator>WillCrick</dc:creator>
      <dc:date>2015-11-06T02:52:58Z</dc:date>
    </item>
  </channel>
</rss>

