[英]What's the use of "-c android.intent.category.BROWSABLE" for "adb shell am start"?
What's the different between之间有什么不同
adb shell am start \
-a android.intent.action.VIEW \
-d https://www.airbnb.co.uk/rooms/48033927
and和
adb shell am start \
-a android.intent.action.VIEW \
-c android.intent.category.BROWSABLE \
-d https://www.airbnb.co.uk/rooms/48033927
Note: I know the use of -a android.intent.action.VIEW
and without as per this How can I make ADB behave like real deeplink?注意:我知道使用-a android.intent.action.VIEW
并且没有按照这个如何使 ADB 表现得像真正的深层链接? , but can't find what's the different between using -c android.intent.category.BROWSABLE
and not ,但找不到使用-c android.intent.category.BROWSABLE
和 not 有什么不同
This is a category
which the intent can have many and specified as这是一个意图可以有很多并指定为的category
[-c <CATEGORY> [-c <CATEGORY>] ...]
see also https://developer.android.com/guide/topics/manifest/category-element另请参阅https://developer.android.com/guide/topics/manifest/category-element
It might not make any difference, because -a
is the action and -c
is the category.它可能没有任何区别,因为-a
是操作, -c
是类别。 When passing action VIEW
and an URL, it is save to assume that this shall be BROWSABLE
.当传递动作VIEW
和 URL 时,假设这应该是BROWSABLE
是保存的。 Ultimately it all depends what the intent-filter
in AndroidManifest.xml
has declared.最终,这一切都取决于AndroidManifest.xml
中的intent-filter
声明的内容。 When passing a category like BROWSABLE
, one still can choose alternate apps, while available - else it should be the default.当传递像BROWSABLE
这样的类别时,仍然可以选择备用应用程序,但可用 - 否则它应该是默认的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.