Reputation: 83
AndroidManifest.xml
?Upvotes: 3
Views: 2665
Reputation: 18499
As commonsware told that is a great answer.Also you can do in menifest also like this :
android:exported="false"
Upvotes: 3
Reputation: 1007265
Simply do not include an <intent-filter>
. Then your service will only be accessible by components within your application. You would use an explicit Intent
to interact with it (e.g., new Intent(this, MyPrivateService.class)
).
Upvotes: 6