开发者

Can a library in Android have its own intent filters?

I'd like to develop a library that can be included in other Android applications to intercept certain kinds of i开发者_运维知识库ntent. 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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜