Android Question manager.Enable not work huawei (administrador)

vercettyDev

Active Member
Licensed User
Longtime User
B4X:
manager.Enable("please enable in order to get access to the secured server.")
I'm using the admin lib
but the .enable function is not sending the intent on huawei phones
If I activate manually it works perfectly (entering the settings)
does anyone know how to solve?
 

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
I have a Redmi Note 8 Pro

I ran the sample app from here ->https://www.b4x.com/android/forum/threads/device-administrator-library.19208/

Only change was to Update to work against API 30.

Hitting Enable works fine.



However, it then crashes and every time the app is run on
B4X:
    If manager.Enabled And manager.PasswordSufficient Then



On a sumsung tablet, android 7.1.1, it works as expected.

On a Pixel 2XL running Android 11, it crashes with the same error as above.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…