【问题标题】:Android ActivityNotFoundException on simple https URI Intent简单 https URI Intent 上的 Android ActivityNotFoundException
【发布时间】:2022-01-06 12:17:53
【问题描述】:

当用户单击我的应用中的按钮时,我正在启动网页。

val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://www.example.com"))
                    startActivity(intent)

它适用于我测试过的每台设备,但我从 Crashlytics 获得崩溃日志,说明 No Activity found to handle Intent { act=android.intent.action.VIEW (has data) }

它似乎只在 Amazon Fire 设备上。

显然,我可以在尝试启动活动之前检查意图是否已解决,但我想实际复制错误并确认修复。

用户可以卸载网络浏览器吗?这似乎很奇怪,因为我遇到过很多这样的崩溃,而且它们似乎是最近才开始的。

【问题讨论】:

    标签: android android-intent kindle-fire activitynotfoundexception


    【解决方案1】:

    用户可以卸载网络浏览器吗?

    可能,但这不是我想的。 Fire TV 可能没有网络浏览器。此外,运行您的应用的受限配置文件可能无法访问网络浏览器(例如,父母限制孩子可以使用的应用的共享平板电脑)。

    不过,总体而言,您不能假设当前用户可以访问 Web 浏览器。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多