Attach files from file system to the application
-
28-06-2021 - |
Question
How can I implement ability to attach files from file system to my application. Can I use some libraries, or I should do it myself programmatically? Or I can implement code of other similar application and use them?
Solution
File browser:
A sample code for file browser. Or you can just let user input the location into an EditText
and let app remember it.
To use external storage(like SD card), please see here
Remember the file location:
It is a simpler way to save persistent data than SQLite database
Send it to server:
Here is an example of how to use HTTP POST to send to server
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow