如何在Android上匹配此链接

时间:2018-10-30 23:17:58

标签: android

如何匹配链接https://example.com/example/。 我试试这个:

<data
    android:host="example.com"
    android:pathPattern="/.*/"
    android:scheme="https" />

但这不起作用。谢谢。

1 个答案:

答案 0 :(得分:0)

美好的一天! 尝试使用android:pathPrefix =“ / example”代替android:pathPattern。 在此处查看文档:{​​{3}}