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
MyAutofillService class looks like this,
Added code to start service, I can see it's started.
Only thing that is not happening is it's not listed in Autofill service list.
I have added Service tag in AndroidManifest.xml
Code:
<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,
Code:
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")
}
}
Code:
startService(Intent(applicationContext, MyAutofillService::class.java))
Only thing that is not happening is it's not listed in Autofill service list.