<?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 com.esri.arcgisruntime.ArcGISRuntimeException: Cannot call this method in this context when calling ExportTiles from Android in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/com-esri-arcgisruntime-arcgisruntimeexception/m-p/68733#M494</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 is a follow-up to my previous thread&amp;nbsp;&lt;A href="https://community.esri.com/thread/203246"&gt;ArcGISRuntimeException: Cannot call this method in this context when doing exportTile from Android&lt;/A&gt;&amp;nbsp;and I feel that it's better to create a new thread than reviving the 1-year old one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same problem (exception) occured when I try to export a tilemap. I am using the same guide as written in&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/android/latest/sample-code/export-tiles.htm" title="https://developers.arcgis.com/android/latest/sample-code/export-tiles.htm"&gt;Export Tiles—ArcGIS Runtime SDK for Android | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;using&amp;nbsp;&lt;A class="link-titled" href="https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" title="https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"&gt;World_Street_Map (MapServer)&lt;/A&gt;&amp;nbsp;as the tileURL and the exception occurs at&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="padding-left: 30px;"&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; ExportTileCacheParameters parameters = parametersFuture.get();&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I believe the tile URL has its own &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;ExportTiles&lt;/SPAN&gt; method and should be callable. I am using ArcGIS SDK version 100.1.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: I have tested with the sample server shown in the example&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 11.4pt;"&gt;&lt;SPAN style="color: #6a8759;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fsampleserver6.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FWorld_Street_Map%2FMapServer" rel="nofollow" target="_blank"&gt;https://sampleserver6.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;and it fails in estimating the file size&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 11.4pt;"&gt;exportTask.estimateTileCacheSizeAsync(params)&lt;/PRE&gt;&lt;P&gt;and the result is null. The funny thing is that the scale of the exported map is only from 1000.0 - 15000.0, which is relatively small. I do not know whether there is stricter requirement in file size for the sample server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example parameters that I sent to server:&lt;/P&gt;&lt;P&gt;- extent =&amp;nbsp;Envelope: [962596,534387, 6423288,990388, 964188,599363, 6424452,082300], [0,000000, 0,000000], [NaN, NaN]&lt;/P&gt;&lt;P&gt;- url =&amp;nbsp;&lt;A class="link-titled" href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer" title="https://sampleserver6.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer"&gt;World_Street_Map (MapServer)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Scale = 1000.0 - 15000.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Nov 2018 10:48:44 GMT</pubDate>
    <dc:creator>JasonChristian</dc:creator>
    <dc:date>2018-11-12T10:48:44Z</dc:date>
    <item>
      <title>com.esri.arcgisruntime.ArcGISRuntimeException: Cannot call this method in this context when calling ExportTiles from Android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/com-esri-arcgisruntime-arcgisruntimeexception/m-p/68733#M494</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 is a follow-up to my previous thread&amp;nbsp;&lt;A href="https://community.esri.com/thread/203246"&gt;ArcGISRuntimeException: Cannot call this method in this context when doing exportTile from Android&lt;/A&gt;&amp;nbsp;and I feel that it's better to create a new thread than reviving the 1-year old one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same problem (exception) occured when I try to export a tilemap. I am using the same guide as written in&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/android/latest/sample-code/export-tiles.htm" title="https://developers.arcgis.com/android/latest/sample-code/export-tiles.htm"&gt;Export Tiles—ArcGIS Runtime SDK for Android | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;using&amp;nbsp;&lt;A class="link-titled" href="https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" title="https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"&gt;World_Street_Map (MapServer)&lt;/A&gt;&amp;nbsp;as the tileURL and the exception occurs at&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="padding-left: 30px;"&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt; ExportTileCacheParameters parameters = parametersFuture.get();&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I believe the tile URL has its own &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;ExportTiles&lt;/SPAN&gt; method and should be callable. I am using ArcGIS SDK version 100.1.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: I have tested with the sample server shown in the example&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 11.4pt;"&gt;&lt;SPAN style="color: #6a8759;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fsampleserver6.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FWorld_Street_Map%2FMapServer" rel="nofollow" target="_blank"&gt;https://sampleserver6.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;and it fails in estimating the file size&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 11.4pt;"&gt;exportTask.estimateTileCacheSizeAsync(params)&lt;/PRE&gt;&lt;P&gt;and the result is null. The funny thing is that the scale of the exported map is only from 1000.0 - 15000.0, which is relatively small. I do not know whether there is stricter requirement in file size for the sample server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example parameters that I sent to server:&lt;/P&gt;&lt;P&gt;- extent =&amp;nbsp;Envelope: [962596,534387, 6423288,990388, 964188,599363, 6424452,082300], [0,000000, 0,000000], [NaN, NaN]&lt;/P&gt;&lt;P&gt;- url =&amp;nbsp;&lt;A class="link-titled" href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer" title="https://sampleserver6.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer"&gt;World_Street_Map (MapServer)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Scale = 1000.0 - 15000.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2018 10:48:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/com-esri-arcgisruntime-arcgisruntimeexception/m-p/68733#M494</guid>
      <dc:creator>JasonChristian</dc:creator>
      <dc:date>2018-11-12T10:48:44Z</dc:date>
    </item>
  </channel>
</rss>

