简体   繁体   中英

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM