【问题标题】:The code is capturing image but it is not showing in my image viewer [duplicate]该代码正在捕获图像,但未显示在我的图像查看器中[重复]
【发布时间】:2020-09-15 14:17:44
【问题描述】:

This is my code,我不知道它为什么会崩溃。

This is the image of my code in android。我没有任何可能导致我的应用崩溃的错误或警告,但它仍在崩溃。

【问题讨论】:

标签: java android android-intent imageview


【解决方案1】:

你应该考虑添加

 if (resultCode == Activity.RESULT_OK) {

onActivityResult 下方的 if 条件。

【讨论】:

  • 谢谢它的工作,但它仍然没有在我的图像查看器中显示捕获的图像图像
  • 您的其余代码未显示在屏幕截图中,因此我们可以提供更多帮助。
  • 代码仅此而已,但我已在问题本身中添加了我的 xml 文件 sn-p
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-05-13
  • 2021-10-12
  • 1970-01-01
  • 1970-01-01
  • 2018-02-24
  • 2010-11-16
相关资源
最近更新 更多