我想建立一個應用程序,如果我點擊鏈接我的應用程序(如果安裝)將打開。但它不工作,不知道爲什麼。它總是重定向到谷歌。 COM點擊網頁鏈接應用程序將打開
我的清單文件
<activity android:name=".DeeplinkingActivity"
android:label="@string/app_name"
android:exported="true"
android:launchMode="singleTop"
android:theme="@android:style/Theme.Holo.NoActionBar">
<intent-filter android:label="@string/app_name">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- Accepts URIs that begin with "http://example.com/soham" -->
<data android:scheme="http"
android:host="example.com"
android:pathPrefix="/soham" />
<data android:scheme="http"
android:host="www.example.com"
android:pathPrefix="/soham" />
</intent-filter>
</activity>
我的test.html
<a href="intent://scan/#Intent;scheme=http;package=soham.com.deeplinking;S.browser_fallback_url=http%3A%2F%2Fgoogle.com;end"></a>
我認爲這個問題是在HTML file.Any幫助?
Thanks.It正在工作。可以告訴我如何通過鏈接發送參數。假設我必須發送id = 1,2。 – Soham
不客氣。 [這個答案](http://stackoverflow.com/a/21304773/2837959)詳細解釋瞭如何將參數作爲額外事件傳遞給應用程序。 –
太棒了。再次感謝 – Soham