'I can't open a downloaded file with an input stream in Android Studio
I am successfully able to download a file, but when I try to open it, I get a file not found exception. I appear to be writing and accessing the same directory. I added the read and write permissions in the app's manifest file.
setDestinationInExternalPublicDir(Environment.DIRECTORY_DOCUMENTS, "fileName.txt")
.....
myInputStream = assets.open(Environment.DIRECTORY_DOCUMENTS + "/fileName.txt")
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
