我正在构建一个需要OAuth的Android应用程序。除了处理来自Yahoo的回调之外,我已经完成了所有OAuth功能。我在AndroidManifest.xml中有以下内容:
<intent-filter> <action android:name="android.intent.action.VIEW"></action> <category android:name="android.intent.category.DEFAULT"></category> <category android:name="android.intent.category.BROWSABLE"></category> <data android:host="www.test.com" android:scheme="http"></data> </intent-filter>
其中www.test.com将被替换为我拥有的域名。它似乎:
- 当我单击页面上的链接时,此过滤器会触发。
- 当从Yahoo的重定向获取回调时,它不会被触发,浏览器会打开www.test.com网站。
- 当我直接在浏览器中输入域名时,它也不会被触发。
那么,有谁能帮我:
- 什么条件下会触发这个intent-filter?
- 是否更改intent-filter或权限可以扩大筛选器以适用于重定向请求?
- 是否有其他方法我可以使用?
感谢您的帮助。
WebView
。你是否成功解决了这个问题,而不需要采用自定义方案? - Nicke Manarin