<?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: ExportTileCacheTaskSampleActivity.java in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/exporttilecachetasksampleactivity-java/m-p/275015#M1803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Shelly,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The TPK file that I downloaded from&amp;nbsp; http:&lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=4497b7bb42e543b691027840d1b9092a"&gt;http://www.arcgis.com/home/item.html?id=4497b7bb42e543b691027840d1b9092a&lt;/A&gt;&lt;SPAN&gt; worked great!&amp;nbsp; So, there must be something wrong with my file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am posting my "compact cache" files, and my TPK file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. - Perhaps this is something:&amp;nbsp; I'm not clear what the levels parameter in the ExportTileCacheParameters is supposed to be.&amp;nbsp; Per the sample code, it's an array of doubles containing 1.0, 2.0, 3.0 ... and so forth.&amp;nbsp; Is that correct?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Mar 2014 14:06:13 GMT</pubDate>
    <dc:creator>michaelsamuels</dc:creator>
    <dc:date>2014-03-19T14:06:13Z</dc:date>
    <item>
      <title>ExportTileCacheTaskSampleActivity.java</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/exporttilecachetasksampleactivity-java/m-p/275013#M1801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to make the ExportTileCacheTaskSampleActivity (as found at &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/android/sample-code/export-tile-cache/"&gt;https://developers.arcgis.com/android/sample-code/export-tile-cache/&lt;/A&gt;&lt;SPAN&gt;) work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the page that features a set of tiled basemap services that can be used to export tile packages for offline use. (&lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/group.html?owner=esri&amp;amp;title=Tiled%20Basemaps"&gt;http://www.arcgis.com/home/group.html?owner=esri&amp;amp;title=Tiled%20Basemaps&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try to use the sample with any of the maps listed at that page, I got the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;com.esri.core.io.EsriSecurityException: Unauthorized access to a secure service - &lt;/SPAN&gt;&lt;A href="http://tiledbasemaps.arcgis.com/arcgis/rest/services/USA_Topo_Maps/MapServer/exportTiles/submitJob"&gt;http://tiledbasemaps.arcgis.com/arcgis/rest/services/USA_Topo_Maps/MapServer/exportTiles/submitJob&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I realized that I had to supply User Credentials (the free trial/developer account I had created) to the constructor of ExportTileCacheTask ... and it worked!&amp;nbsp; I got my files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, however, I can't get anything to display.&amp;nbsp; I just see grid lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 03:53:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/exporttilecachetasksampleactivity-java/m-p/275013#M1801</guid>
      <dc:creator>michaelsamuels</dc:creator>
      <dc:date>2014-03-18T03:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: ExportTileCacheTaskSampleActivity.java</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/exporttilecachetasksampleactivity-java/m-p/275014#M1802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not seen this issue specifically, but I can suggest a few things I would try.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Make sure you're setting map extent or zooming in and out to the levels that you actually exported to the TPK. Also check you you did load the layer correctly - check the layer got initialized for example using MapView.getOnStatusChangedListener.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try loading an existing TPK file into your map with the same code - e.g. &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=4497b7bb42e543b691027840d1b9092a"&gt;http://www.arcgis.com/home/item.html?id=4497b7bb42e543b691027840d1b9092a&lt;/A&gt;&lt;SPAN&gt;. Or try making an ArcGIS Compact Cache output instead of a TPK to see if that makes any difference. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If yo have no luck I would post your generated TPK here so we could try loading it and see if we have same problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 09:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/exporttilecachetasksampleactivity-java/m-p/275014#M1802</guid>
      <dc:creator>ShellyGill1</dc:creator>
      <dc:date>2014-03-18T09:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: ExportTileCacheTaskSampleActivity.java</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/exporttilecachetasksampleactivity-java/m-p/275015#M1803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Shelly,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The TPK file that I downloaded from&amp;nbsp; http:&lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=4497b7bb42e543b691027840d1b9092a"&gt;http://www.arcgis.com/home/item.html?id=4497b7bb42e543b691027840d1b9092a&lt;/A&gt;&lt;SPAN&gt; worked great!&amp;nbsp; So, there must be something wrong with my file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am posting my "compact cache" files, and my TPK file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. - Perhaps this is something:&amp;nbsp; I'm not clear what the levels parameter in the ExportTileCacheParameters is supposed to be.&amp;nbsp; Per the sample code, it's an array of doubles containing 1.0, 2.0, 3.0 ... and so forth.&amp;nbsp; Is that correct?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 14:06:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/exporttilecachetasksampleactivity-java/m-p/275015#M1803</guid>
      <dc:creator>michaelsamuels</dc:creator>
      <dc:date>2014-03-19T14:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: ExportTileCacheTaskSampleActivity.java</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/exporttilecachetasksampleactivity-java/m-p/275016#M1804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are most likely seeing the grid because you are not zoomed into the Level of Detail you downloaded.Did you attempt to download without selecting levels in the sample?&amp;nbsp; A quick look at the layer compact cache you attached shows you downloaded levels 0 - 9 and your json description is valid. Did you select those 10 levels? I noticed that the sample will start the download if you have not selected levels which I will fix and republish.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You are correct in suspecting that the levels parameter are doubles representing the level of detail available in the tile service.&amp;nbsp; The service provided in the sample has 10 levels of detail available as described in the service description &lt;/SPAN&gt;&lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 16:14:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/exporttilecachetasksampleactivity-java/m-p/275016#M1804</guid>
      <dc:creator>DanO_Neill</dc:creator>
      <dc:date>2014-03-19T16:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: ExportTileCacheTaskSampleActivity.java</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/exporttilecachetasksampleactivity-java/m-p/275017#M1805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Dan.&amp;nbsp; That did it.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It was indeed a matter of setting the resolution correctly.&amp;nbsp; Mind you, I didn't know what resolution to set it to, since I couldn't find documentation for this in the map I'm using (&lt;/SPAN&gt;&lt;A href="http://tiledbasemaps.arcgis.com/arcgis/rest/services/NatGeo_World_Map/MapServer"&gt;http://tiledbasemaps.arcgis.com/arcgis/rest/services/NatGeo_World_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;). So, I had to first get the map into view (by using hand gestures to zoom in and zoom out), and then, in a debug point, I did a mapView.getResolution().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Whew!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The whole process is exacerbated by the fact that it takes over a minute for Android to do a compile, due (I presume) to the fact that it re-compiles ArcGIS' library each time.&amp;nbsp; Have you encountered this?&amp;nbsp; And if so, have you figured out a way to get around this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. - thanks for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 02:19:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/exporttilecachetasksampleactivity-java/m-p/275017#M1805</guid>
      <dc:creator>michaelsamuels</dc:creator>
      <dc:date>2014-03-20T02:19:09Z</dc:date>
    </item>
  </channel>
</rss>

