I now have my app being recognized by the Android OS in the Settings - Autofill Services to be able to select my app as the default for Autofill.
Now I will continue with adding the Sub routines that recognize the 2 views (Username and Password) as the Autofill values.
This is the Autofill Service entry I added to the end of the B4A Manifest:
'Autofill Service
AddApplicationText(
<service
android:name=".AutofillService"
android:label="Your app name here"
android:permission="android.permission.BIND_AUTOFILL_SERVICE">
<intent-filter>
<action android:name="android.service.autofill.AutofillService" />
</intent-filter>
<meta-data
android:name="android.autofill"
android:resource="@xml/service_configuration" />
</service>
)
It includes:
1) B4A Service module name: android:name=".AutofillService" (you will need to add a Service Module to your app. Name it exactly the same as this entry (without the fullstop/period character. In this example: AutofillService) What goes into this Service Module I'm still learning.
2) Android Settings - Autofill Services title: android:label="Your app name here"
3) the permission needed for your app to use the Autofill Service: android
ermission="android.permission.BIND_AUTOFILL_SERVICE"
Further down is the reference to the service_configuration file. The file resides in the /Objects/res/xml folder. Set the file to Read-only.
I have seen the app create this file and its contents when it runs, and its contents do not need to be changed. If need be, create the file and its contents.
More to come...