How in the application to implement the download files (photos, documents) from the local storage of the user android?

Closed due to the fact that the question is too general for participants Yuriy SPb , aleksandr barakin , dirkgntly , user194374, cheops Aug 6 '16 at 6:03 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • specify the problem, what exactly are you having difficulty? - Kirill Stoianov

1 answer 1

In short, it looks like this:

String fileName = "myFile.txt"; String path = Environment.getExternalStorageDirectory()+"/"+fileName; File file = new File(path); FileInputStream fileInputStream = new FileInputStream(file);