<?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: Show a Private Layer in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/show-a-private-layer/m-p/596160#M4133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Apr 2017 06:37:40 GMT</pubDate>
    <dc:creator>AntonioFiume</dc:creator>
    <dc:date>2017-04-10T06:37:40Z</dc:date>
    <item>
      <title>Show a Private Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/show-a-private-layer/m-p/596157#M4130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm using ArcGIS SDK 100.0.0 for Android.&lt;/P&gt;&lt;P&gt;I found some guide to access to private layer but only with the old version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show a private layer using the&amp;nbsp;last version 100.0.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my simple code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt; private static final &lt;/SPAN&gt;String &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;CVWLayersTEST &lt;/SPAN&gt;= &lt;SPAN style="color: #008000; font-weight: bold;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2FXXXX%2Farcgis%2Frest%2Fservices%2FXXX%2FXXX%2FFeatureServer%2F0" target="_blank"&gt;https://XXXX/arcgis/rest/services/XXX/XXX/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; [...]
&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt; mMapView &lt;/SPAN&gt;= (MapView) findViewById(R.id.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mapView&lt;/SPAN&gt;);
 ArcGISMap map = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;ArcGISMap(Basemap.Type.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;TOPOGRAPHIC&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;34.056295&lt;/SPAN&gt;, -&lt;SPAN style="color: #0000ff;"&gt;117.195800&lt;/SPAN&gt;, &lt;SPAN style="color: #0000ff;"&gt;1&lt;/SPAN&gt;);


 &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mServiceFeatureTable &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;ServiceFeatureTable(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;CVWLayersTEST&lt;/SPAN&gt;);&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mStreetsLayer &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;FeatureLayer(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mServiceFeatureTable&lt;/SPAN&gt;);
&lt;SPAN style="color: #808080;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt; &lt;/SPAN&gt;map.getOperationalLayers().add(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mStreetsLayer&lt;/SPAN&gt;);

 &lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMapView&lt;/SPAN&gt;.setMap(map);&lt;/PRE&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ih the layer is public the application shows the layer.&lt;/P&gt;&lt;P&gt;If the application is private the system doesn't show nothing because need a credential.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How ca i pass the credential in my code?&lt;/P&gt;&lt;P&gt;Some example found on forum use different classes used in the Old version about SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:35:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/show-a-private-layer/m-p/596157#M4130</guid>
      <dc:creator>AntonioFiume</dc:creator>
      <dc:date>2021-12-12T01:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Show a Private Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/show-a-private-layer/m-p/596158#M4131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seem the equivalent for the new version should be the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;ArcGISMapImageLayer mapImageLayer = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;ArcGISMapImageLayer(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;MALSATLayers&lt;/SPAN&gt;);
mapImageLayer.setCredential(&lt;SPAN style="color: #660e7a;"&gt;mycredentials&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:35:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/show-a-private-layer/m-p/596158#M4131</guid>
      <dc:creator>AntonioFiume</dc:creator>
      <dc:date>2021-12-12T01:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Show a Private Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/show-a-private-layer/m-p/596159#M4132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry guys but is not clear.&lt;/P&gt;&lt;P&gt;I tried with the only solution that i discovered that use the credentials, so the ArcGISMapImageLayer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;ArcGISMapImageLayer mapImageLayer = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;ArcGISMapImageLayer("https://XXXX/arcgis/rest/services/XXX/XXX/MapServer");
mapImageLayer.setCredential(&lt;SPAN style="color: #660e7a;"&gt;mycredentials&lt;/SPAN&gt;);

map.getOperationalLayers().add(mapImageLayer);&lt;/PRE&gt;&lt;P&gt;but the system shows onle the first layer.&lt;/P&gt;&lt;P&gt;The MapServer haves 10 layers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:35:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/show-a-private-layer/m-p/596159#M4132</guid>
      <dc:creator>AntonioFiume</dc:creator>
      <dc:date>2021-12-12T01:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Show a Private Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/show-a-private-layer/m-p/596160#M4133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 06:37:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/show-a-private-layer/m-p/596160#M4133</guid>
      <dc:creator>AntonioFiume</dc:creator>
      <dc:date>2017-04-10T06:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Show a Private Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/show-a-private-layer/m-p/596161#M4134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antonio - you might want to look at using the AuthenticationManager - this can take care of authenticating at runtime - it's pretty simple to set up and described here -&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/android/latest/guide/access-the-arcgis-platform.htm#ESRI_SECTION1_2513881AFEDD4B1688E614554463EB71" title="https://developers.arcgis.com/android/latest/guide/access-the-arcgis-platform.htm#ESRI_SECTION1_2513881AFEDD4B1688E614554463EB71"&gt;Access the ArcGIS platform: Authentication Manager—ArcGIS Runtime SDK for Android | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 09:33:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/show-a-private-layer/m-p/596161#M4134</guid>
      <dc:creator>ShellyGill1</dc:creator>
      <dc:date>2017-04-12T09:33:33Z</dc:date>
    </item>
  </channel>
</rss>

