简体   繁体   English

Android:Library Project:是否可以从Library Project启动IntentService?

[英]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? 将IntentService创建到Library Project中以便在其他Android Application Project中使用它时,检查点是什么?

My library project has different package. 我的图书馆项目有不同的包装。

For example: 例如:

Library Project: com.locationplatform.position 图书馆计划:com.locationplatform.position

Application Project: mobile.app 应用项目: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. 在Android中设置图书馆项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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