开发者

Android: Library Project: Is it possible to start a IntentService from Library 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜