Does anyone know that is it possible to register (add) declaration of service in source code instead in AndroidManifest.xml if yes... how?
Thanks for any suggestions or help.
It's not possible. You have to have your Service registered in AndroidManifest.xml.
As stated here:
Like activities (and other components), you must declare all services in your application's manifest file.
So you will allways have to list your Service in the manifest file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With