【发布时间】: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