2017-03-01 59 views
0

我已经尝试了许多解决方案来打开浏览器中的链接点击应用程序,但没有什么是我的工作。 我已经尝试过这种解决方案。 我想在浏览器的链接点击打开启动器或Android应用程序

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

     <data 
      android:host="example.com" 
      android:pathPrefix="/someresource/" 
      android:scheme="http" /> 
     <data 
      android:host="www.example.com" 
      android:pathPrefix="/someresource/" 
      android:scheme="http" /> 
    </intent-filter> 

请帮助我。

+0

是一些更具体的关于您的问题提供详细信息 –

+0

什么是您的深层链接? –

+0

阅读DeepLink在这里https://developer.android.com/training/app-indexing/deep-linking.html –

回答

0
try this its working code. 
    <activity 
       android:name=".MainActivity" 
       android:screenOrientation="portrait"> 
       <intent-filter> 
        <action android:name="android.intent.action.VIEW" /> 

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

        <data 
         android:host="qa.mintshowapp.com" 
         android:pathPrefix="/m/showroom/mintdetaillanding" 
         android:scheme="http" /> 
       </intent-filter> 
      </activity> 
+0

我试过这个解决方案,但它不工作。 请检查我的代码。

+0

其工作代码兄弟,我想你错过了一些东西。 –

+0

是的,它应该工作,但它不适用于我的情况。 我想在我的代码中找到最新的问题。 我没有触及主发射器的意图过滤器。 我试图通过www.example.com在铬 –

相关问题