<?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 Downgrading ArcGIS Runtime License without restarting application in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/downgrading-arcgis-runtime-license-without/m-p/248812#M1625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears that it is not possible to downgrade a runtime license from advanced (runtimeadvanced) to lite (runtimelite) within an Android application session.&amp;nbsp; The only way appears to be to programmatically restart the Android application. This is less than desirable.&amp;nbsp; The reason we want to do this is we have an option to log off of our application, so that a user can use the application in public mode with runtimelite.&amp;nbsp; When trying to downgrade the license on log off action by the user with following line of code...&lt;/P&gt;&lt;P&gt;ArcGISRuntimeEnvironment.setLicense("runtimelite,1000,XXXXXXX,none,XXXXXXX");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following error...&lt;/P&gt;&lt;P&gt;"ArcGISRuntimeException: Attempt to change license level after already set: License level already set".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interestingly if I upgrade by first setting lite (then user logs in) and setting license to advanced there is no issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to programmatically restart the application as a workaround, but wondering if there is a better way?&amp;nbsp; At the very least wondering if this could be considered for an enhancement in the runtime down the road?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Oct 2019 17:42:55 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2019-10-15T17:42:55Z</dc:date>
    <item>
      <title>Downgrading ArcGIS Runtime License without restarting application</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/downgrading-arcgis-runtime-license-without/m-p/248812#M1625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears that it is not possible to downgrade a runtime license from advanced (runtimeadvanced) to lite (runtimelite) within an Android application session.&amp;nbsp; The only way appears to be to programmatically restart the Android application. This is less than desirable.&amp;nbsp; The reason we want to do this is we have an option to log off of our application, so that a user can use the application in public mode with runtimelite.&amp;nbsp; When trying to downgrade the license on log off action by the user with following line of code...&lt;/P&gt;&lt;P&gt;ArcGISRuntimeEnvironment.setLicense("runtimelite,1000,XXXXXXX,none,XXXXXXX");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following error...&lt;/P&gt;&lt;P&gt;"ArcGISRuntimeException: Attempt to change license level after already set: License level already set".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interestingly if I upgrade by first setting lite (then user logs in) and setting license to advanced there is no issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to programmatically restart the application as a workaround, but wondering if there is a better way?&amp;nbsp; At the very least wondering if this could be considered for an enhancement in the runtime down the road?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2019 17:42:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/downgrading-arcgis-runtime-license-without/m-p/248812#M1625</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-10-15T17:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Downgrading ArcGIS Runtime License without restarting application</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/downgrading-arcgis-runtime-license-without/m-p/1579055#M6275</link>
      <description>&lt;P&gt;I am on .NET SDK but the principle could apply elsewhere: when the new user license is available, I re-Initilialize the runtime:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;        ArcGISRuntimeEnvironment.Initialize(conf =&amp;gt;
        {
            conf.UseLicense(licenseInfo.ToJson());
        });&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 27 Jan 2025 13:01:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/downgrading-arcgis-runtime-license-without/m-p/1579055#M6275</guid>
      <dc:creator>ViktorSafar</dc:creator>
      <dc:date>2025-01-27T13:01:15Z</dc:date>
    </item>
  </channel>
</rss>

