2015-02-09 47 views
0

我在我的android应用程序中使用深层链接。路径模式Android intent-filter

我有网页,其中包含的开始的数字,所以我需要在图案,点击此处查看:

<intent-filter android:label="test_label"> 
       <action android:name="android.intent.action.VIEW" /> 
       <category android:name="android.intent.category.DEFAULT" /> 
       <category android:name="android.intent.category.BROWSABLE" /> 

       <data android:scheme="http" android:host="url.com" android:pathPattern="/[0-9]*,.*.html" /> 


      </intent-filter> 

而且我的链接:

link.com/245576,example-url-example.html 

有什么不对? 有可能吗?

回答

0

起初您将您的意图限制为http://url您定义的路径无效,因为它没有RegEx。该路径可以包含一个通用前缀。你可以检查完整路径的意图。