zhipingwei / android-daisy-epub-reader

Automatically exported from code.google.com/p/android-daisy-epub-reader
0 stars 0 forks source link

Allow the user to pick the folder for their DaisyBooks, and create a default if it doesn't exist. #42

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Ana G has sensibly asked if we can include a default folder on the SD-card for 
their DaisyBooks. I still want to allow a user to pick another folder in case 
they store them elsewhere e.g. for another Daisy Reader program. So my proposed 
solution would be along the lines of:

1. When the program (first) starts, check the folder specified in the 
preferences exists (this folder may be different from the default folder if the 
user chose another folder). If the folder does exist, continue loading the main 
menu, etc.

2. If the folder doesn't exist (which could be for many reasons, e.g. because 
it's the first time this program has been run on this phone, or because the 
SD-card has been replaced, or the folder has been deleted, etc) then prompt the 
user to pick a folder, and suggest a default folder if they don't have a 
preference. Create that folder if it doesn't exist. Update the preference value 
stored for the DaisyReader's root folder. Now suggest the user copies / 
downloads books into separate folders in this default folder. Continue to load 
the main menu once they've OK'd the suggestion message.

If any budding developer would like to have a go at writing this code you're 
welcome to do so. The work is relatively self-contained and the sort of topic 
covered in Android tutorials, etc.

Original issue reported on code.google.com by julianharty on 24 Jun 2011 at 9:20

GoogleCodeExporter commented 8 years ago

Original comment by julianharty on 2 Sep 2011 at 9:19