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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…