Android 在Chrome/Firefox上运行scheme时,应用程序未打开
我想使用scheme启动我的Android应用程序,这是我的代码:Android 在Chrome/Firefox上运行scheme时,应用程序未打开,android,Android,我想使用scheme启动我的Android应用程序,这是我的代码: <activity android:name="com.myapp.SplashScreenActivity" android:alwaysRetainTaskState="true" android:label="@string/app_name" android:noHistory="true" > <intent-filter
<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/,结果如下:
- 默认internet浏览器:应用程序正常打开
- 铬:不起作用
- 火狐:不工作