Administrator Library to lock the screen

robramalv

Member
Licensed User
Longtime User
I am using the Administrator Library to lock the screen. The question is that when I start the main activity, I do:

If manager.Enabled = False Then
manager.Enable("Please enable in order to get access to the secured server.")
end If

The problem is that when the user open the software always show the screen to confirm the action. It's possible to show only one time this screnn to the user??? If it's not possible, is there another option to turn off the screen or to lock the screen???
 

robramalv

Member
Licensed User
Longtime User
Sorry for my late response. Ok, I run today the app and Android ask the user to activate the permissions to do the lock screen. The software works ok. If I run the app later, Android ask the user again to activate the permissions. If I run the app tomorrow, Android ask the user again to activate the permissions....
 
Upvote 0

robramalv

Member
Licensed User
Longtime User
Solved

The problem is that it's no necesary execute manager.disable. I was executed manager.disable on App Close so in the next app open, the software execute again manager.enable.

Best Regards,
 
Upvote 0
Top