来自 Android 的 Dropbox AuthActivity。失败 "User may have restricted profile"
Dropbox AuthActivity from Android. Fails with "User may have restricted profile"
我正在尝试修改现有的应用程序(使用 Gdrive)以使用 Dropbox。为此,我正在改编 https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android.
中的代码
不幸的是,我卡在了第一步:Auth.startOAuth2Authentication
Android Studio 的日志显示如下:
08-02 13:13:30.338 7994-7994/rudy.android.stdb E/com.dropbox.core.android.AuthActivity: Could not launch intent. User may have restricted profile
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=https://www.dropbox.com/... }
有什么想法吗?
此错误似乎表明没有可用于处理此意图以查看提供的 URL 的应用程序,即没有安装浏览器。听起来这可能是由于使用了 Restricted Profile.
如果没有可用的浏览器或 Dropbox 应用程序,SDK 将无法处理授权流程。如果这是问题所在,您应该启用浏览器或关闭受限配置文件。
我正在尝试修改现有的应用程序(使用 Gdrive)以使用 Dropbox。为此,我正在改编 https://github.com/dropbox/dropbox-sdk-java/tree/master/examples/android.
中的代码不幸的是,我卡在了第一步:Auth.startOAuth2Authentication
Android Studio 的日志显示如下:
08-02 13:13:30.338 7994-7994/rudy.android.stdb E/com.dropbox.core.android.AuthActivity: Could not launch intent. User may have restricted profile
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=https://www.dropbox.com/... }
有什么想法吗?
此错误似乎表明没有可用于处理此意图以查看提供的 URL 的应用程序,即没有安装浏览器。听起来这可能是由于使用了 Restricted Profile.
如果没有可用的浏览器或 Dropbox 应用程序,SDK 将无法处理授权流程。如果这是问题所在,您应该启用浏览器或关闭受限配置文件。