<?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 .tpk supported or not? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/tpk-supported-or-not/m-p/600737#M4143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried reading from local storage using the Samples:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=d2d263a280164a039ef0a02e26ee0501"&gt;http://www.arcgis.com/home/item.html?id=d2d263a280164a039ef0a02e26ee0501&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;where it says: "With the ArcGIS for Android SDK local data can be a compact cache or tile package (.TPK)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The sample works great for the provided compact cache example, but it is also supposed to work for .tpk files, right? In the source-code comments, however, it says the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"(Tile Packages or .tpk's are not currently supported)." This was written sometime in 2012, probably june.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried reading a .tpk-file I have generated in ArcMap (&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00170000017w000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00170000017w000000&lt;/A&gt;&lt;SPAN&gt;) but it does not display. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So: &lt;/SPAN&gt;&lt;STRONG&gt;Is reading .tpk-files from local storage currently supported or not?&lt;/STRONG&gt;&lt;SPAN&gt; If so, could you give me a path-example? (Simply giving the path to the file on the SD does not seem to work).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2013 13:51:12 GMT</pubDate>
    <dc:creator>AxelBronder</dc:creator>
    <dc:date>2013-02-26T13:51:12Z</dc:date>
    <item>
      <title>.tpk supported or not?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/tpk-supported-or-not/m-p/600737#M4143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried reading from local storage using the Samples:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=d2d263a280164a039ef0a02e26ee0501"&gt;http://www.arcgis.com/home/item.html?id=d2d263a280164a039ef0a02e26ee0501&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;where it says: "With the ArcGIS for Android SDK local data can be a compact cache or tile package (.TPK)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The sample works great for the provided compact cache example, but it is also supposed to work for .tpk files, right? In the source-code comments, however, it says the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"(Tile Packages or .tpk's are not currently supported)." This was written sometime in 2012, probably june.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried reading a .tpk-file I have generated in ArcMap (&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00170000017w000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00170000017w000000&lt;/A&gt;&lt;SPAN&gt;) but it does not display. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So: &lt;/SPAN&gt;&lt;STRONG&gt;Is reading .tpk-files from local storage currently supported or not?&lt;/STRONG&gt;&lt;SPAN&gt; If so, could you give me a path-example? (Simply giving the path to the file on the SD does not seem to work).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 13:51:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/tpk-supported-or-not/m-p/600737#M4143</guid>
      <dc:creator>AxelBronder</dc:creator>
      <dc:date>2013-02-26T13:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: .tpk supported or not?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/tpk-supported-or-not/m-p/600738#M4144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This works for me:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;mapView.AddLayer (new Com.Esri.Android.Map.Ags.ArcGISLocalTiledLayer ("file:///mnt/sdcard/map.tpk"));&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 19:53:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/tpk-supported-or-not/m-p/600738#M4144</guid>
      <dc:creator>JonMayfield</dc:creator>
      <dc:date>2013-02-26T19:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: .tpk supported or not?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/tpk-supported-or-not/m-p/600739#M4145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Think I am doing the same thing, though:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File storage= Environment.getExternalStorageDirectory();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; String dir = storage + "TPKs/test3.tpk";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; local = new ArcGISLocalTiledLayer(dir);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; map.addLayer(local);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, since it is working for you it might be something wrong with my .apk&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try rebuilding it, or getting one from somewhere else...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 04:02:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/tpk-supported-or-not/m-p/600739#M4145</guid>
      <dc:creator>AxelBronder1</dc:creator>
      <dc:date>2013-02-27T04:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: .tpk supported or not?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/tpk-supported-or-not/m-p/600740#M4146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://resources.arcgis.com/en/help/android-sdk/api/reference/com/esri/android/map/ags/ArcGISLocalTiledLayer.html"&gt;ArcGISLocalTiledLayer&lt;/A&gt;&lt;SPAN&gt; class can take a path to your *.tpk file on disk.&amp;nbsp; Look at the &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=4f02eed4a00b40cfb8c0149bd09f2b02"&gt;CreateLocalJsonFeatures&lt;/A&gt;&lt;SPAN&gt; sample for an example.&amp;nbsp; In the sample you will see the resource in res/config.xml file and the Local Tile Layer added in LocalMapActivity class.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 21:20:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/tpk-supported-or-not/m-p/600740#M4146</guid>
      <dc:creator>DanO_Neill</dc:creator>
      <dc:date>2013-03-04T21:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: .tpk supported or not?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/tpk-supported-or-not/m-p/600741#M4147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Found out I wasn't using the latest version of the api, got it working when I updated to 10,1,1&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 07:31:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/tpk-supported-or-not/m-p/600741#M4147</guid>
      <dc:creator>AxelBronder1</dc:creator>
      <dc:date>2013-03-06T07:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: .tpk supported or not?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/tpk-supported-or-not/m-p/600742#M4148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having a tough time with this too.&amp;nbsp; Here's what I'm doing.&amp;nbsp; Can someone advise if this is correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[Bindable] private var f:File = new File();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;private function init():void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f.nativePath = "/sdcard/ArcGISApp/MapData/MobileParcelsMap.tpk";&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;esri:Map ......&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;esri:ArcGISLocalTiledLayer id="Pcl_tpk"&amp;nbsp; file="{f}" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/esri:Map&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I trying to make this too simple?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eddie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 15:22:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/tpk-supported-or-not/m-p/600742#M4148</guid>
      <dc:creator>eddiequinlan</dc:creator>
      <dc:date>2013-05-24T15:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: .tpk supported or not?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/tpk-supported-or-not/m-p/600743#M4149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I figured my problem out.&amp;nbsp; I didn't realize when testing on the mobile device you had to uninstall the previous .apk file.&amp;nbsp; I was just replacing the file and running the app again.&amp;nbsp; Therefore, any program changes I was making wasn't being updated on the Android.&amp;nbsp; Once I uninstalled the app and re-installed the new code, the maps were there.&amp;nbsp; My code was working after all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanx and hope this may help anyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;eddie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 16:32:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/tpk-supported-or-not/m-p/600743#M4149</guid>
      <dc:creator>eddiequinlan</dc:creator>
      <dc:date>2013-05-24T16:32:38Z</dc:date>
    </item>
  </channel>
</rss>

