2016-04-26 20 views
0
<activity 
     android:name=".ActivateActivity" 
     android:configChanges="orientation"   
     android:windowSoftInputMode="adjustPan"> 

     <intent-filter > 
      <data android:host="www.testlink.com.qa" android:pathPrefix="/templates/home.aspx/" android:scheme="http"/> 
      <action android:name="android.intent.action.VIEW" /> 
      <category android:name="android.intent.category.DEFAULT" /> 
      <category android:name="android.intent.category.BROWSABLE" /> 
     </intent-filter> 

</activity> 

這是我的代碼....在我的電子郵件中單擊鏈接(www.testlink.com.qa)時它不工作。 但是當我使用Uri.parse從另一個應用程序調用(「http://www.testlink.com.qa/templates/home.aspx」),它的工作如何打開安裝的android應用程序,當我點擊我的電子郵件中的網址?

+0

其所謂的深層鏈接,看看http://developer.android.com/ intl/es/training/app-indexing/deep-linking.html – Nanoc

回答

0
<intent-filter> 
       <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:host="www.testlink.com.qa" android:path="www.testlink.com.qa/templates/home.aspx" android:scheme="http"></data> 
</intent-filter> 

電子郵件鏈接http://www.testlink.com.qa/templates/home.aspx

+0

當我給我的電子郵件鏈接爲http://www.testlink.com.qa/templates/home.aspx – Bibin

+0

當我點擊這個鏈接從我的郵件,它顯示選擇瀏覽器 – Bibin

+0

嘗試更新代碼 –

相關問題