0

Thank you for your time and consideration.

I am facing the following situation and I need some advice on how to proceed.

I am building an application that needs to store files (pdf, word,...) that are downloaded form the internet or come as attachments in emails, etc.

The application needs to have the ability to add and delete the files.

Please I need some suggestion hon how to proceed to implement such a functionality.

Please if there is some open source project that I could re-use for the purpose that would be very helpful as well.

user229044
  • 232,980
  • 40
  • 330
  • 338
Lisa Anne
  • 4,482
  • 17
  • 83
  • 157

1 Answers1

2

You can check Storage Options and Saving Files docs of Android.

And in these links there are implementations of how to save and delete files to/from internal/external storage.

Lars Vogel's Example (there are very useful learning/sample documentations in his website. I recommend you to take a look to his website)

Sample Read/Write Program

Saving to External Storage

Saving file in internal storage android

Delete internal storage file

Hope these will help you.

Community
  • 1
  • 1
canova
  • 3,965
  • 2
  • 22
  • 39
  • thank you, this are very helpful, but my need are more complex, please could you give a look a this question as well? THANKS!!!! http://stackoverflow.com/questions/18375786/android-how-do-i-intercept-when-the-user-downloads-a-file-from-the-browser-or – Lisa Anne Aug 22 '13 at 09:14
  • You are welcome. I gave some sample codes on that question too please take a look at them – canova Aug 22 '13 at 09:33