Android Question lc.SetVariableAndValue, variable loses value on reboot

Bryan

Member
Licensed User
Longtime User
I'm just following the typical example of using SetVariableAndValue.The variable test_1 holds it's assigned value as long as there is an available internet connection and the license check passes.
If I reboot the device that my APK is installed on, then disable the device's WI-FI connections my APK will first fail the License check and close. Then if I restart the APK again it will pass license check and run with my WI-FI still disabled. But, as soon as I test the value of test_1 elsewhere in my code it fails and my app then closes. It would seem test_1 is not being assigned it's value if there is no internet (WI-FI) connection. Is this normal ? Did anyone else have a similar problem? I thought the result of a license check was maintained in cache somewhere so any app will still run when there is no internet connection or Wi-Fi is turned off.

If you need to see some of my code I would gladly post it.

Thanks
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…