I need to open a specific image in Android Gallery, but I tried some codes with no success. This is my code:
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse( "file:///Download/screenshot.jpg"), "image/*");
startActivity(intent);
It seems the Android Gallery is open but with no image, it show a black screen.
I'm trying my app in a Samsung Galaxy Nexus with ICS 4.0
Hope anyone can help me.
Thanks, Víctor.