Hi,
How can I change the underlined red line in the image extra line of text,
into English? - just like I did with the title and button text (see lines 8 and 9 of the code).
Is there another method without interfering with library sources?
How can I change the underlined red line in the image extra line of text,
into English? - just like I did with the title and button text (see lines 8 and 9 of the code).
Is there another method without interfering with library sources?
B4XBiometricManager:
Private biometric As B4XBiometricManager
biometric.Show("Please authenticate","Authorization PIN Code")
Public Sub Show (Msg As String, NegativeButtonText As String)
Dim PromptInfoBuilder As JavaObject
PromptInfoBuilder.InitializeNewInstance("androidx.biometric.BiometricPrompt$PromptInfo$Builder", Null)
PromptInfoBuilder.RunMethod("setTitle", Array(Msg))
PromptInfoBuilder.RunMethod("setNegativeButtonText", Array As String(NegativeButtonText))
Dim Ev As JavaObject
Ev.InitializeNewInstance(Application.PackageName & ".b4xbiometricmanager.BiometricPromptAuthentication", Array(Me))
Dim Prompt As JavaObject
Prompt.InitializeNewInstance("androidx.biometric.BiometricPrompt", Array(ctxt, Executor, Ev))
Prompt.RunMethod("authenticate", Array(PromptInfoBuilder.RunMethod("build", Null)))
End Sub