here is the library. there is a documentation at the bottom of it https://bintray.com/rameeshakulapc/maven/aFileChooser#
As I understand it, the library provides a ready window for downloading files based on Activity, and if suddenly there are no pre-installed file managers in the phone, this one opens. But there must be a method to immediately open the directory I need.
I save the file this way (and what will be the extension of my file?)
OutputStream fos = mContext.openFileOutput(FILE_DataRate, Context.MODE_PRIVATE); ObjectOutputStream os = new ObjectOutputStream(fos); os.writeObject(answer); os.close();
and I want to get a window where I can select this file to download.
I use library so:
public void onClickLoad(View view){ FileUtils.getPath(this,Uri.parse("android.resource://myapp.exchangerates/")); Intent getContentIntent = FileUtils.createGetContentIntent(); Intent intent = Intent.createChooser(getContentIntent, "Select a file"); startActivityForResult(intent, REQUEST_CODE); } And anyway, even though I added Path, it activates where I don’t find in any directory.
FILE_DataRateis what will be the file name (extension is part of the name, if there is no dot in the name - the file will be without extension) - woesssContext.openFileOutput()writes to a directory that can be obtained using thecontext.getFilesDir()method. But this library does not provide for a start from the specified directory, and it has not been updated for a long time. Either you have to add functionality to it, bending over to your project with GitHab 'a , or look for a more suitable one. - woesss