h5頁面喚起app 某個特定頁面實際上是走了不少彎路還有閱讀了不了大牛的博客,爲了讓你們少走彎路,我就總結下我概括總結方法吧android
android app內頁面scheme配置
<activity
android:name="com.example.test.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<data
android:host="my.host.com"
android:path="/get/info"
android:scheme="m" />app
<category android:name="android.intent.category.DEFAULT" />get
<action android:name="android.intent.action.VIEW" />博客
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
android app內原生頁面取值
Uri uri = getIntent().getData();
if (uri != null) {
id = uri.getQueryParameter("ID");
}
string
h5頁面配置
<a href="m://my.host.com/get/info?ID=10000" >點擊打開目標app</a>it