<?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 cancel the account login of ArcGIS every time Android navigates in Roads and Highways Questions</title>
    <link>https://community.esri.com/t5/roads-and-highways-questions/how-to-cancel-the-account-login-of-arcgis-every/m-p/814491#M111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because you have to use this method.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;private void &lt;/SPAN&gt;setupOAuthManager() {
    String clientId = getResources().getString(R.string.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;client_id&lt;/SPAN&gt;);
    String redirectUrl = getResources().getString(R.string.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;redirect_uri&lt;/SPAN&gt;);

    &lt;SPAN style="color: #000080; font-weight: bold;"&gt;try &lt;/SPAN&gt;{
        OAuthConfiguration oAuthConfiguration = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;OAuthConfiguration(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"https://www.arcgis.com"&lt;/SPAN&gt;, clientId, redirectUrl);
        DefaultAuthenticationChallengeHandler authenticationChallengeHandler = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;DefaultAuthenticationChallengeHandler(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;);
        AuthenticationManager.&lt;SPAN&gt;setAuthenticationChallengeHandler&lt;/SPAN&gt;(authenticationChallengeHandler);
        AuthenticationManager.&lt;SPAN&gt;addOAuthConfiguration&lt;/SPAN&gt;(oAuthConfiguration);
    } &lt;SPAN style="color: #000080; font-weight: bold;"&gt;catch &lt;/SPAN&gt;(MalformedURLException e) {
        showError(e.getMessage());
    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I have set the project as public, but I need to log in to the account every time I close the program to be able to use the navigation, which is very troublesome. How to cancel the interface, jump to account login and still use the navigation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 09:36:18 GMT</pubDate>
    <dc:creator>zhiyuanLiu</dc:creator>
    <dc:date>2021-12-12T09:36:18Z</dc:date>
    <item>
      <title>How to cancel the account login of ArcGIS every time Android navigates</title>
      <link>https://community.esri.com/t5/roads-and-highways-questions/how-to-cancel-the-account-login-of-arcgis-every/m-p/814491#M111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because you have to use this method.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;private void &lt;/SPAN&gt;setupOAuthManager() {
    String clientId = getResources().getString(R.string.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;client_id&lt;/SPAN&gt;);
    String redirectUrl = getResources().getString(R.string.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;redirect_uri&lt;/SPAN&gt;);

    &lt;SPAN style="color: #000080; font-weight: bold;"&gt;try &lt;/SPAN&gt;{
        OAuthConfiguration oAuthConfiguration = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;OAuthConfiguration(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;"https://www.arcgis.com"&lt;/SPAN&gt;, clientId, redirectUrl);
        DefaultAuthenticationChallengeHandler authenticationChallengeHandler = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;DefaultAuthenticationChallengeHandler(&lt;SPAN style="color: #000080; font-weight: bold;"&gt;this&lt;/SPAN&gt;);
        AuthenticationManager.&lt;SPAN&gt;setAuthenticationChallengeHandler&lt;/SPAN&gt;(authenticationChallengeHandler);
        AuthenticationManager.&lt;SPAN&gt;addOAuthConfiguration&lt;/SPAN&gt;(oAuthConfiguration);
    } &lt;SPAN style="color: #000080; font-weight: bold;"&gt;catch &lt;/SPAN&gt;(MalformedURLException e) {
        showError(e.getMessage());
    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I have set the project as public, but I need to log in to the account every time I close the program to be able to use the navigation, which is very troublesome. How to cancel the interface, jump to account login and still use the navigation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:36:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/roads-and-highways-questions/how-to-cancel-the-account-login-of-arcgis-every/m-p/814491#M111</guid>
      <dc:creator>zhiyuanLiu</dc:creator>
      <dc:date>2021-12-12T09:36:18Z</dc:date>
    </item>
  </channel>
</rss>

