Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
首先,对不起我的英语,它不是很好。我正在尝试从图库中选择照片。这一步一切正常。当我选择照片时,在 ActiviyResult 上获取图像的 Uri 并使用 setImageUri 设置 ImageView。但是在第二次尝试中,当我设置 ImageUri 时会抛出异常。Uri not 为空,如果我使用路径设置 TextView 则有效。
有人知道发生了什么吗?