'Autofill service not shown in settings autofill service list
I don't expect functionality to work, but shouldn't this be listed in service? Please suggest if I am missing anything.
I have added Service tag in AndroidManifest.xml
<service
android:name=".MyAutofillService"
android:label="My Autofill Service"
android:permission="android.permission.BIND_AUTOFILL_SERVICE"
android:exported="true">
<intent-filter>
<action android:name="android.service.autofill.AutofillService" />
</intent-filter>
</service>
MyAutofillService class looks like this,
package com.example.myapplication
import android.os.CancellationSignal
import android.service.autofill.*
class MyAutofillService : AutofillService() {
override fun onFillRequest(p0: FillRequest, p1: CancellationSignal, p2: FillCallback) {
TODO("Not yet implemented")
}
override fun onSaveRequest(p0: SaveRequest, p1: SaveCallback) {
TODO("Not yet implemented")
}
}
Added code to start service, I can see it's started.
startService(Intent(applicationContext, MyAutofillService::class.java))
Only thing that is not happening is it's not listed in Autofill service list.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
