schimanski Well-Known Member Licensed User Longtime User Jan 18, 2021 #1 Is it possible to check, if the user has set a system device lock, such as fingeprint, pattern etc.? Thanky for help...
Is it possible to check, if the user has set a system device lock, such as fingeprint, pattern etc.? Thanky for help...
Erel B4X founder Staff member Licensed User Longtime User Jan 18, 2021 #2 B4X: Private Sub IsKeyguardSecure As Boolean Dim ctxt As JavaObject ctxt.InitializeContext Return ctxt.RunMethodJO("getSystemService", Array("keyguard")).RunMethod("isKeyguardSecure", Null) End Sub KeyguardManager | Android Developers developer.android.com Upvote 0
B4X: Private Sub IsKeyguardSecure As Boolean Dim ctxt As JavaObject ctxt.InitializeContext Return ctxt.RunMethodJO("getSystemService", Array("keyguard")).RunMethod("isKeyguardSecure", Null) End Sub KeyguardManager | Android Developers developer.android.com