• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

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

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")
   }
}
Added code to start service, I can see it's started.

Code:
startService(Intent(applicationContext, MyAutofillService::class.java))

Only thing that is not happening is it's not listed in Autofill service list.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones