I'm working on an Android application which should be able to open a selected file from a specific folder.
I already tried this, but after selecting which application I want to open it, I got this message:
Impossible loading
After trying a lot of thread 1 and thread 2, I use these lines of code to do it:
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse("/mnt/sdcard/xxx/xxx/Pictures/xxx.jpg"), "image/*");
myContext.startActivity(intent);
How can I figure this out?
You can try this