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.

  • one
    "and what will be the extension of my file?" - what you have in FILE_DataRate is 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) - woesss
  • one
    Context.openFileOutput() writes to a directory that can be obtained using the context.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
  • Thanks, I wanted to hear it, because I shoveled the entire library, but I could not find anything to run the right directory right away. You can add as an answer, I will accept - Turalllb
  • And you may know some convenient library to immediately open the specified directory, preferably with a filter by extensions - Turalllb

0