<?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: Accessing Scene Layer Package(slpk)  in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/accessing-scene-layer-package-slpk/m-p/737986#M5192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would guess that you&amp;nbsp;might be missing the&amp;nbsp;Android Framework permissions code&amp;nbsp;that allow an app to access local storage, but without more details of the error you're seeing its difficult to be sure. There's no sample currently that is using an .slpk file, but there are a lot of samples that show accessing local storage and include the permissions code that you should have - you could check the&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-runtime-samples-android/tree/master/java/open-mobile-mappackage" title="https://github.com/Esri/arcgis-runtime-samples-android/tree/master/java/open-mobile-mappackage"&gt;arcgis-runtime-samples-android/java/open-mobile-mappackage at master · Esri/arcgis-runtime-samples-android · GitHub&lt;/A&gt;&amp;nbsp;&amp;nbsp;sample for an example of this code, and also refer to the Android Framework doc at&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="https://developer.android.com/guide/topics/permissions/overview" title="https://developer.android.com/guide/topics/permissions/overview"&gt;Permissions overview &amp;nbsp;|&amp;nbsp; Android Developers&lt;/A&gt;&amp;nbsp;.&amp;nbsp; &amp;nbsp;If that's not the problem then post back more details about your error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2018 10:54:25 GMT</pubDate>
    <dc:creator>ShellyGill1</dc:creator>
    <dc:date>2018-08-03T10:54:25Z</dc:date>
    <item>
      <title>Accessing Scene Layer Package(slpk)</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/accessing-scene-layer-package-slpk/m-p/737985#M5191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried to access slpk file from device using &lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;ArcGISSceneLayer.&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;But i unable to access. please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 09:38:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/accessing-scene-layer-package-slpk/m-p/737985#M5191</guid>
      <dc:creator>Siva_SankaraReddy_T</dc:creator>
      <dc:date>2018-08-02T09:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Scene Layer Package(slpk)</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/accessing-scene-layer-package-slpk/m-p/737986#M5192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would guess that you&amp;nbsp;might be missing the&amp;nbsp;Android Framework permissions code&amp;nbsp;that allow an app to access local storage, but without more details of the error you're seeing its difficult to be sure. There's no sample currently that is using an .slpk file, but there are a lot of samples that show accessing local storage and include the permissions code that you should have - you could check the&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-runtime-samples-android/tree/master/java/open-mobile-mappackage" title="https://github.com/Esri/arcgis-runtime-samples-android/tree/master/java/open-mobile-mappackage"&gt;arcgis-runtime-samples-android/java/open-mobile-mappackage at master · Esri/arcgis-runtime-samples-android · GitHub&lt;/A&gt;&amp;nbsp;&amp;nbsp;sample for an example of this code, and also refer to the Android Framework doc at&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="https://developer.android.com/guide/topics/permissions/overview" title="https://developer.android.com/guide/topics/permissions/overview"&gt;Permissions overview &amp;nbsp;|&amp;nbsp; Android Developers&lt;/A&gt;&amp;nbsp;.&amp;nbsp; &amp;nbsp;If that's not the problem then post back more details about your error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 10:54:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/accessing-scene-layer-package-slpk/m-p/737986#M5192</guid>
      <dc:creator>ShellyGill1</dc:creator>
      <dc:date>2018-08-03T10:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Scene Layer Package(slpk)</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/accessing-scene-layer-package-slpk/m-p/737987#M5193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have meet a similar problem recently, and I found a solution for this. I agree with &lt;A href="https://community.esri.com/migrated-users/23124" target="_blank"&gt;Shelly Gill&lt;/A&gt;‌’s point of view, and you maybe meet the permissions issues of over Android&amp;nbsp; 6.0. You should get dynamic permissions in you code, like the following code.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #cc7832;"&gt;private void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;InitializePermissions&lt;/SPAN&gt;() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;(!CheckPermission()) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RequirePermission()&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}
}
&lt;SPAN style="color: #cc7832;"&gt;private boolean &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;CheckPermission&lt;/SPAN&gt;() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;for &lt;/SPAN&gt;(String permission : &lt;SPAN style="color: #9876aa;"&gt;PERMISSIONS&lt;/SPAN&gt;) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;(ActivityCompat.&lt;SPAN&gt;checkSelfPermission&lt;/SPAN&gt;(&lt;SPAN style="color: #cc7832;"&gt;this, &lt;/SPAN&gt;permission) !=
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PackageManager.&lt;SPAN style="color: #9876aa;"&gt;PERMISSION_GRANTED&lt;/SPAN&gt;) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;return false;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;return true;
&lt;/SPAN&gt;}
&lt;SPAN style="color: #cc7832;"&gt;private void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;RequirePermission&lt;/SPAN&gt;() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; ActivityCompat.&lt;SPAN&gt;requestPermissions&lt;/SPAN&gt;(&lt;SPAN style="color: #cc7832;"&gt;this, &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;PERMISSIONS&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6897bb;"&gt;1&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;P&gt;The &lt;STRONG&gt;PERMISSIONS&amp;nbsp;&lt;/STRONG&gt;is&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #cc7832;"&gt;private final &lt;/SPAN&gt;String[] &lt;SPAN style="color: #9876aa;"&gt;PERMISSIONS &lt;/SPAN&gt;= &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;String[] {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Manifest.permission.&lt;SPAN style="color: #9876aa;"&gt;READ_EXTERNAL_STORAGE&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Manifest.permission.&lt;SPAN style="color: #9876aa;"&gt;WRITE_EXTERNAL_STORAGE
&lt;/SPAN&gt;}&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;And your &lt;STRONG&gt;onCreate&lt;/STRONG&gt; function maybe like:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&lt;SPAN style="color: #bbb529;"&gt;@Override
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;protected void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;onCreate&lt;/SPAN&gt;(Bundle savedInstanceState) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;super&lt;/SPAN&gt;.onCreate(savedInstanceState)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;setContentView(R.layout.&lt;SPAN style="color: #9876aa;"&gt;activity_main&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;InitializePermissions()&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Write you code there */&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopt to help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:26:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/accessing-scene-layer-package-slpk/m-p/737987#M5193</guid>
      <dc:creator>XiangNingJiao1</dc:creator>
      <dc:date>2021-12-12T07:26:07Z</dc:date>
    </item>
  </channel>
</rss>

