【发布时间】:2014-09-22 03:33:50
【问题描述】:
我想使用 scheme 启动我的 Android 应用,这是我的代码:
<activity
android:name="com.myapp.SplashScreenActivity"
android:alwaysRetainTaskState="true"
android:label="@string/app_name"
android:noHistory="true" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<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="www.myhost.com"
android:pathPrefix="/company/"
android:scheme="http" />
<data
android:host="myhost.com"
android:pathPrefix="/company/"
android:scheme="http" />
</intent-filter>
</activity>
然后在浏览器和结果上运行:myhost.com/company/:
- 默认网络浏览器:应用正常打开
- Chrome:不工作
- Firefox:不工作。
我不知道如何解决,请帮我解释一下。
【问题讨论】:
标签: android