开发者

Can a library in Android have its own intent filters?

开发者 https://www.devze.com 2023-01-30 18:12 出处:网络
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'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

精彩评论

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

关注公众号