I have a program logic which assume user will download a file into there device first, and then my program will allow them to open it and process the file.
With this logic, I tried to using the Storage access framework
Intent intent = new Intent()
.setType("*/*")
.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent, "Open file"), 123);
This code show a open from
dialog, but I cannot find any file from Downloads
.
I tried drag file to emulator, but it just copy to sdcard/Downloads
, and cannot show in Downloads
Is there have a way to simulate the files are downloaded from internet or from email?
Thanks in advance