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?

Was it helpful?

Solution

File browser:

Link

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:

Using Shared Preferences

It is a simpler way to save persistent data than SQLite database

Send it to server:

Link

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
scroll top