I have added MyService in android/framework/base/services/java/com/xxxx/server/
space and registered that service in AndroidManifest.xml
of android/frameworks/base/core/res/
.
Calling startService()
of MyService, from test application is working fine with implicit intent. But explicit is not working with warning message
"Unable to start service".
I have used flag android:exported="true"
and package name "com.xxxx.server"
, class name "com.xxxx.server.MyService"
Please let me know how do we use explicit intent with framework service.
Aucun commentaire:
Enregistrer un commentaire