<?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 How to implement App Login? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-implement-app-login/m-p/506872#M3473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build android app as part of implementation I am trying to implement access to different resources on my&amp;nbsp;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;behalf for example&amp;nbsp;access to&amp;nbsp; geocode service with isForStorage = true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;I am using android runtime (latest version) and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;I tried the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #4c4c4c;"&gt;Create LocatorTask with url&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"&gt;http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer&lt;/A&gt;&amp;nbsp;and passed token with referrer for application that I created locatorTask.setCredential(UserCredential.createFromToken(....)))&lt;/LI&gt;&lt;LI&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 9.0pt;"&gt;geocodeParams.&lt;SPAN style="color: #660e7a;"&gt;isForStorage &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;true&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;Perform call to&amp;nbsp;locatorTask.geocodeAsync - I always got 403&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I also created Service Proxies and tried to use&amp;nbsp;those urls, also with out success&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I have additional question: what is the best way to retrieve a token in android app?&lt;/P&gt;&lt;P&gt;I didn't found any specific API inside sdk,&amp;nbsp;as a solution I can perform&amp;nbsp; http call with secret and client_id and after that to use retrieved token. Is this the only option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 May 2019 15:06:17 GMT</pubDate>
    <dc:creator>MichaelK</dc:creator>
    <dc:date>2019-05-11T15:06:17Z</dc:date>
    <item>
      <title>How to implement App Login?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-implement-app-login/m-p/506872#M3473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build android app as part of implementation I am trying to implement access to different resources on my&amp;nbsp;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;behalf for example&amp;nbsp;access to&amp;nbsp; geocode service with isForStorage = true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;I am using android runtime (latest version) and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;I tried the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #4c4c4c;"&gt;Create LocatorTask with url&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"&gt;http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer&lt;/A&gt;&amp;nbsp;and passed token with referrer for application that I created locatorTask.setCredential(UserCredential.createFromToken(....)))&lt;/LI&gt;&lt;LI&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 9.0pt;"&gt;geocodeParams.&lt;SPAN style="color: #660e7a;"&gt;isForStorage &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;true&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;Perform call to&amp;nbsp;locatorTask.geocodeAsync - I always got 403&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I also created Service Proxies and tried to use&amp;nbsp;those urls, also with out success&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I have additional question: what is the best way to retrieve a token in android app?&lt;/P&gt;&lt;P&gt;I didn't found any specific API inside sdk,&amp;nbsp;as a solution I can perform&amp;nbsp; http call with secret and client_id and after that to use retrieved token. Is this the only option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 May 2019 15:06:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/how-to-implement-app-login/m-p/506872#M3473</guid>
      <dc:creator>MichaelK</dc:creator>
      <dc:date>2019-05-11T15:06:17Z</dc:date>
    </item>
  </channel>
</rss>

