I have the following Intent to View an image:
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();
}
where the URI is content://com.android.providers.media.documents/document/image:30506
but I get "Media non found".
What an i doing wrong?