在Android的库都可以有自己的意图过滤器? [英] Can a library in Android have its own intent filters?

查看:118
本文介绍了在Android的库都可以有自己的意图过滤器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发可包括在其他Android应用程序截取某些类型的意图库。这可能吗?

我创建了一个图书馆和一个测试项目,均具有自己的的Andr​​oidManifest.xml 文件。在图书馆的清单,我定义为行动TEST的意图过滤器。但是,当我启动与行动TEST的意图,从测试项​​目,该意向过滤器不能正常工作。

从使用过由Android库意图过滤器?


解决方案

  

从使用过由Android库意图过滤器?


presently,据我所知,从库清单将被忽略。这可能会改变未来。

I'd like to develop a library that can be included in other Android applications to intercept certain kinds of intent. Is it possible?

I've created a library and a test project, both having their own AndroidManifest.xml files. In library's manifest I've defined an intent filter for action "TEST". But when I launch an intent with action "TEST" from the test project, that intent filter does not work.

Are intent filters from libraries ever used by Android?

解决方案

Are intent filters from libraries ever used by Android?

Presently, AFAIK, the manifest from the library is ignored. That might change in the future.

这篇关于在Android的库都可以有自己的意图过滤器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆