diamondsoftware

ExportTileCacheTaskSampleActivity.java

Discussion created by diamondsoftware on Mar 17, 2014
Latest reply on Mar 19, 2014 by diamondsoftware
I'm trying to make the ExportTileCacheTaskSampleActivity (as found at https://developers.arcgis.com/android/sample-code/export-tile-cache/) work.

I found the page that features a set of tiled basemap services that can be used to export tile packages for offline use. (http://www.arcgis.com/home/group.html?owner=esri&title=Tiled%20Basemaps).

When I try to use the sample with any of the maps listed at that page, I got the following error:

com.esri.core.io.EsriSecurityException: Unauthorized access to a secure service - http://tiledbasemaps.arcgis.com/arcgis/rest/services/USA_Topo_Maps/MapServer/exportTiles/submitJob

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!  I got my files.

Now, however, I can't get anything to display.  I just see grid lines.


Mike

Outcomes