2017-04-03 96 views
0

我想打开的应用程序工作当用户尝试从Android手机打开网站,并为我使用深层链接'Android的深层链接并非没有路径属性

  <category android:name="android.intent.category.BROWSABLE" /> 

      <data android:scheme="http" 
       android:host="host name" 
       android:path="/search" /> 
     </intent-filter>` 

它与路径属性一起使用,但它不起作用,没有路径属性。

+0

如果路径是 “有成效”?如果是这样,那应该足够好。 –

+0

@Gabe不能在路径中使用“' – Anil

回答

1

尝试

 <action android:name="android.intent.action.VIEW"></action> 
     <category android:name="android.intent.category.DEFAULT"></category> 
     <category android:name="android.intent.category.BROWSABLE">/category> 
     <data android:scheme="http"></data> 
     <data android:scheme="https"></data> 
     <data android:host="host"></data>