我正在构建一个需要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将被我拥有的域名替换.它似乎 :
所以任何人都可以帮助我
谢谢你的帮助.
我构建了一个需要 OAuth 的 Android 应用程序。使用由 Android 拦截的自定义方案回调,一切运行良好。雅虎似乎已经更改了目标帖子,现在雅虎不接受自定义方案。
我现在正在寻找可能的替代方法。我的第一次尝试是使用普通的 http 方案并修改我的意图过滤器以拦截新的 URL。我的 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>
Run Code Online (Sandbox Code Playgroud)
其中 www.test.com 将替换为我拥有的域名。它似乎 :
那么有人可以帮助我吗
感谢您的帮助。