I'm trying to view the images in a specific folder using an intent. My code is as follows:
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
Uri imgUri = Uri.parse("file://sdcard/download");
intent.setDataAndType(imgUri, "image/*");
startActivity(intent);
However, each time it runs, I get this message in the log:
02-25 00:40:16.271: ERROR/(8359): can't open '/download'
02-25 00:40:16.271: ERROR/(8359): can't open '/download'
What am I doing wrong?
I think this is far simpler than everyone else is suggesting. I believe the path is case sensitive. In your example "file://sdcard/Download" should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With