【发布时间】:2017-03-22 20:21:14
【问题描述】:
Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
getActivity().startActivityForResult(i, 100);
//on activity result now Uri selectedImageURI = data.getData();
Picasso.with(rootView.getContext()).load(selectedImageURI.toString()).into(image);
好吧,我打电话打开画廊。一旦打开,我需要检索图像,它在某些图片的情况下工作,而在其他情况下不工作。 我注意到那些其他的图像是从我的手机中删除的?他们为什么要展示?
它给了我 uri content://com.google.android.apps.photos.contentprovider/-1/1 ...它的 -1 并不总是工作。我也没有崩溃。
【问题讨论】:
-
删除tostring或发布logcat
-
未显示的图像被您以编程方式或手动删除..?