【发布时间】:2016-02-25 13:20:21
【问题描述】:
我写了一个应用程序,用户在点击购买按钮后重定向到 Internet 浏览器(例如:chrome),付款后我希望他回到我的应用程序(我的活动),所以我发现我应该使用 Intent -过滤,但它对我不起作用!
我在清单中添加这些代码:
<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="returnApp" android:scheme="myapp"></data>
</intent-filter>
当我打开这样的网址时:
myapp://returnApp?status=1
我的应用没有打开。
【问题讨论】:
标签: android payment intentfilter