<?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: Where to put the MMPK File in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/where-to-put-the-mmpk-file/m-p/422248#M5088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you able to open the file with standard .NET File APIs with that path? Ie File.OpenRead(pathToMmpk) ?&lt;BR /&gt;Also make sure you configure your application manifest to read in that location.&lt;BR /&gt;With android you can't really package files with the application itself - you can only package assets, and you'd have to "unpack" those files first to a local folder before opening, or downloading it from an online location to that location on first access.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jul 2020 16:03:40 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2020-07-08T16:03:40Z</dc:date>
    <item>
      <title>Where to put the MMPK File</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/where-to-put-the-mmpk-file/m-p/422243#M5083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im trying to do this tutorial&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/labs/net/add-layers-to-a-map-offline/" title="https://developers.arcgis.com/labs/net/add-layers-to-a-map-offline/"&gt;Add layers to a map (offline) | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to tell the apk where the location of the PackageFolder is. When i put it on my device or i use the path from my pc. It will not load the mmpk, when i test the apk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is how i write it:&lt;/P&gt;&lt;P&gt;var mapPackageFolder = @"C:\Users\Test\Desktop\XamarinTest\Vegetation Management";&lt;BR /&gt; var mapPackageFile = @"SUEWAG VTPK Grundkarte Beschriftung.mmpk";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is how i tested it, when i put the folder it to my Device&lt;/P&gt;&lt;P&gt;var mapPackageFolder = @"Interner Speicher\XamarianTest";&lt;BR /&gt; var mapPackageFile = @"SUEWAG VTPK Grundkarte Beschriftung.mmpk";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do i miss something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2020 12:18:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/where-to-put-the-mmpk-file/m-p/422243#M5083</guid>
      <dc:creator>WwLl</dc:creator>
      <dc:date>2020-07-06T12:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put the MMPK File</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/where-to-put-the-mmpk-file/m-p/422244#M5084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What platform, WPF or UWP?&amp;nbsp; UWP restricts where you could put files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2020 16:20:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/where-to-put-the-mmpk-file/m-p/422244#M5084</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2020-07-06T16:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put the MMPK File</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/where-to-put-the-mmpk-file/m-p/422245#M5085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think i need to explain more. Im using Visual Studio and Xamarin to create iOS and Android applications. Im working with Windows10.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont use UWP and WPF, maybe im using the wrong tutorial???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2020 18:51:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/where-to-put-the-mmpk-file/m-p/422245#M5085</guid>
      <dc:creator>WwLl</dc:creator>
      <dc:date>2020-07-06T18:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put the MMPK File</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/where-to-put-the-mmpk-file/m-p/422246#M5086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no C: drive on an iOS or Android device, you cannot set a location like you would in Windows with a full path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest way is to use a&amp;nbsp;Environment.SpecialFolder because this&amp;nbsp;returns the platform specific location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="line-numbers language-csharp"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; mapPackageFolder &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Combine&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Environment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetFolderPath&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Environment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SpecialFolder&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MyDocuments&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"SomeSubfolder"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"SomePackageName"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2020 23:15:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/where-to-put-the-mmpk-file/m-p/422246#M5086</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2020-07-06T23:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put the MMPK File</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/where-to-put-the-mmpk-file/m-p/422247#M5087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks it helped me, but i got it working with&amp;nbsp;&lt;SPAN style="color: #171717; background-color: #f2f2f2;"&gt;Android.OS.Environment.ExternalStorageDirectory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But now i get this Error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Esri.ArcGISRuntime.ArcGISRuntimeException: 'Invalid access: Mobile map package failed to open. Check the archive format is correct, zip file with no compression.'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="position: absolute; left: 93px; top: 52px;"&gt;&lt;DIV class="gtx-trans-icon"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2020 13:44:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/where-to-put-the-mmpk-file/m-p/422247#M5087</guid>
      <dc:creator>WwLl</dc:creator>
      <dc:date>2020-07-08T13:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Where to put the MMPK File</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/where-to-put-the-mmpk-file/m-p/422248#M5088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you able to open the file with standard .NET File APIs with that path? Ie File.OpenRead(pathToMmpk) ?&lt;BR /&gt;Also make sure you configure your application manifest to read in that location.&lt;BR /&gt;With android you can't really package files with the application itself - you can only package assets, and you'd have to "unpack" those files first to a local folder before opening, or downloading it from an online location to that location on first access.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2020 16:03:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/where-to-put-the-mmpk-file/m-p/422248#M5088</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2020-07-08T16:03:40Z</dc:date>
    </item>
  </channel>
</rss>

