So now I'm applying the other method: "importantForAutofill", and it fails with the same error as I was getting before:
java.lang.RuntimeException: Method: importantForAutofill not found in: android.widget.EditText
Here's the Sub scripts I call (in the order they are listed below) after loading the layout, using the same code structure as Erel suggested:
Sub Init_Website(et As EditText)
et.As(JavaObject).RunMethod("importantForAutofill", Array(Array As String("no"))) '<== crashes here
End Sub
Sub Init_Username(et As EditText)
et.As(JavaObject).RunMethod("setAutofillHints", Array(Array As String("username")))
et.As(JavaObject).RunMethod("importantForAutofill", Array(Array As String("yes")))
End Sub
Sub Init_Password(et As EditText)
et.As(JavaObject).RunMethod("setAutofillHints", Array(Array As String("password")))
et.As(JavaObject).RunMethod("importantForAutofill", Array(Array As String("yes")))
End Sub
On this Android Developer page, it references the values for the "importantForAutofill" method:
https://developer.android.com/guide/topics/text/autofill-optimize#java
But it also references the values as numeric. I've tried using both. Still get the error.
Help would be appreciated.