My Service only works if I have MyService.java in a package like
com.test.app
but NOT in a subpackage, for example
com.test.app.services.MyService
In the manifest, I tried to declare it using
<service android:name=".services.MyService" />
or fully qualified
<service android:name="com.test.app.services.MyService" />
but none of the methods worked. I use subpackages to better structure my files. So I really can’t put my service file in a subpackage or am I missing something here?
(I work with the extension library provided by the Android team. This includes the implementation of a simple service.)
source
share