请问:action和category的意思
我们在使用隐式Intent时,在AndroidManifest.xml文件中,会使用到action和category,
我看书时,说只有action和category中的内容同时匹配Intnet中指定的action和category,
这个活动才能响应。可是我看到创建Intent对象时,只有action匹配,没有看到category.
请问action和category到底是代表什么?以上例子为什么创建Intent只有action参数,
没有category,它们如何匹配?这两个是不是要固定搭配?如果不是,如何搭配?
请看文档:Intent(String action)
Create an intent with a given action.
这里只有action,没有category