2017-03-01 37 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在鉻 –

相關問題