Downgrading ArcGIS Runtime License without restarting application

10-15-2019 10:42 AM
by Anonymous User
Not applicable

It appears that it is not possible to downgrade a runtime license from advanced (runtimeadvanced) to lite (runtimelite) within an Android application session.  The only way appears to be to programmatically restart the Android application. This is less than desirable.  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.  When trying to downgrade the license on log off action by the user with following line of code...


I get the following error...

"ArcGISRuntimeException: Attempt to change license level after already set: License level already set".

Interestingly if I upgrade by first setting lite (then user logs in) and setting license to advanced there is no issue.

I am able to programmatically restart the application as a workaround, but wondering if there is a better way?  At the very least wondering if this could be considered for an enhancement in the runtime down the road?

0 Kudos
0 Replies