Android 从浏览器链接打开应用程序不工作
我有一个带有活动的应用程序,可以让用户购买一些优惠券。 在签出过程中,应用程序必须打开浏览器并重定向到某个URL才能确认签出,并且在确认后,它会将浏览器重定向到必须打开我的应用程序的URL,或者至少将其带到前台 问题是应用程序没有打开,因为它似乎没有拦截URL。 我的舱单是:Android 从浏览器链接打开应用程序不工作,android,intentfilter,Android,Intentfilter,我有一个带有活动的应用程序,可以让用户购买一些优惠券。 在签出过程中,应用程序必须打开浏览器并重定向到某个URL才能确认签出,并且在确认后,它会将浏览器重定向到必须打开我的应用程序的URL,或者至少将其带到前台 问题是应用程序没有打开,因为它似乎没有拦截URL。 我的舱单是: <activity android:name="com.my.app.HomeActivity" android:configChanges="orientation|screenSi
<activity
android:name="com.my.app.HomeActivity"
android:configChanges="orientation|screenSize"
android:exported="true"
android:label="@string/app_name"
android:launchMode="singleTask"
android:screenOrientation="nosensor"
android:theme="@style/MyTheme"
android:windowSoftInputMode="adjustPan" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:host="ordercompleted"
android:scheme="x" />
<data
android:host="orderrejected"
android:scheme="y" />
<data
android:host="orderfailed"
android:scheme="z" />
<data
android:host="ordercanceled"
android:scheme="t" />
</intent-filter>
我在onCreate和onNewIntent方法中有断点和所有内容,但它仍然没有捕获它;只是显示网页的浏览器不存在
有什么想法吗
提前多谢 首先。您使用的是默认的android浏览器还是其他什么?我对Opera浏览器有问题,但对System one来说它可以工作perfect@Gooziec我尝试了默认和Chrome,完全一样。