3
I’m developing an application that when I click on a button it exports my entire database to an excel file, this file gets inside a folder created by the application itself, this folder created gets in the device’s internal memory. My question is, if I put a button I can open this folder to view the files?
I tried something like this to try to open the folder containing the files, but did not succeed.
Uri selectedUri = Uri.parse(Environment.getExternalStorageDirectory() +
"/DSS_DIGITAL/");
Intent dss_digital = new Intent(Intent.ACTION_GET_CONTENT);
dss_digital.setDataAndType(selectedUri, "resource/folder");
startActivity(dss_digital);
I thank anyone who can help.
What happens is that to view the files from the device, you need a file manager. Smartphones do not always come with file manager, in which most of the time, each person downloads their favorite, as the SUPERSTAR or the ES File Explorer File Manager, and others. Maybe what you can do is try to check if some of them are possible to pass parameters to suggest to the user the installation of a manager.
– viana
Got it, more I would suggest an app type, pass his package there if this app requires open and if not the app request the installation?
– Thed Santana
If it is possible the friend could show me some code to see how it works. I thank you already.
– Thed Santana