I only had the receiver with
com.twofortyfouram.locale.intent.action.FIRE_SETTING
so I deleted the receiver and added it as a service extending IntentServiceParallel
it asked me to put a constructor to the service, so I added:
public FireReceiver(@NonNull String name) {
super(name);
}
then it said:
'onBind(Intent)' in 'com.poc.test.FireReceiver' clashes with 'onBind(Intent)' in 'com.poc.test.IntentServiceParallel'; attempting to use incompatible return type
so I changed it in IntentServiceParallel to:
override fun onBind(intent: Intent): IBinder? = null
then it did not like the service definition in Manifest:
This class should provide a default constructor (a public constructor with no arguments) (com.poc.test)
I don't know what to do with this.
Is there a simple example that I can check ?