Android 为什么没有图像显示?
我有以下意图查看图像:Android 为什么没有图像显示?,android,Android,我有以下意图查看图像: Intent intent = new Intent(Intent.ACTION_VIEW,uri); intent.setDataAndType(uri,"image/*"); try { startActivity(intent); } catch (Exception ex) { Toast.makeText(getApplicationContext(),ex.getMessage(),Toast.LENGTH_SHORT).show(); } URI在哪里co
Intent intent = new Intent(Intent.ACTION_VIEW,uri);
intent.setDataAndType(uri,"image/*");
try {
startActivity(intent);
} catch (Exception ex) {
Toast.makeText(getApplicationContext(),ex.getMessage(),Toast.LENGTH_SHORT).show();
}
URI在哪里content://com.android.providers.media.documents/document/image:30506
但我找不到媒体
我做错了什么?请参阅有关通过intent打开图像的线程,或者您可以查看