I’m making a android library app that can download and show special files. now I need to write a service that download file in background! are there samples for services?
and I want to save files in SD, because users can update app and don’t should miss downloaded files.
If you have a suggest or opinion for this, write me, please.
Permission: To write to external storage, you need to add this permission:
Note: you can use above code to get the file downloaded and saved in the SD card. You can run this code in background using AsysnTask or
thread.