开发者

Android: Library Project: Is it possible to start a IntentService from Library Project?

开发者 https://www.devze.com 2023-03-30 18:06 出处:网络
What are the checkpoints in creating an IntentService into Library Project in order to use it in other Android Application Project?

What are the checkpoints in creating an IntentService into Library Project in order to use it in other Android Application Project?

My library project has different package.开发者_运维技巧

For example:

Library Project: com.locationplatform.position

Application Project: mobile.app

Any guidance is appreciated.


It's possible to invoke a service in the library project from the application project. The only trouble is that the Manifest files doesn't merge. You will have to add the permissions for the activities, services in the library project manually in the application project manifest. Also don't forget to give the absolute package path for the services in the library project. Check this question too. Library Project does the manifest file merge?

Edit. Setting up Library projects in Android.

0

精彩评论

暂无评论...
验证码 换一张
取 消