richard
richard

Reputation: 2053

How android works if defining a service in manifest file without starting service in code

I find some android service example in github https://github.com/wildan2711/mqtt-android-tutorial. This is a demo project which is used to introduce how to use android mqtt library. In demo demo code, the service is define

But this service is not started in the code. Why?

Upvotes: 1

Views: 39

Answers (1)

Anton Kazakov
Anton Kazakov

Reputation: 2774

I think this service starting inside Library project. AFAIK it was necessary to declare service in Manifest of app using library as well. Now manifest merging will add service to app manifest automatically.

Upvotes: 1

Related Questions