【发布时间】:2015-07-17 17:34:04
【问题描述】:
我正在尝试向我的应用添加深层链接,当我添加时:
<data android:scheme="http"
android:host="www.example.com"
android:pathPrefix="/gizmos" />
对于我的 MainActivity 中的意图过滤器,编译后图标未安装在设备中。
这是清单上的活动部分:
<activity
android:name=".MainActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:windowSoftInputMode="adjustPan"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http"
android:host="www.example.com"
android:pathPrefix="/gizmos" />
</intent-filter>
</activity>
【问题讨论】:
标签: android intentfilter deep-linking