chokkarg / worktime

Automatically exported from code.google.com/p/worktime
0 stars 0 forks source link

Backup/Restore - Choose location in file browser #140

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Currently the user can set the 'Location of backups'. By default this is the 
internal memory of the device.

However the user has the possibility to set it whatever other url he wants to 
using a simple text input box.

This should be changed to something else:
When choosing a location it should display 'Internal Storage' and 'External 
Storage (SD-card)'. This second option should only be there if an SD-card is 
available!

The way it's stored in the preferences stays the same, however the keys must 
change!

When retrieving the preferred storage location a check must be performed if the 
location is accessible. If not we fall back to the internal storage (and can 
display a toast-message: The preferred storage location is not accessible, 
falling back to the internal storage).

Original issue reported on code.google.com by dirkvran...@gmail.com on 28 Aug 2012 at 7:20

GoogleCodeExporter commented 8 years ago
This selection of internal/external storage seems to be impossible.

Reason: Android only considers internal and external memory. External memory is 
a large amount of memory used for data storage, but modern phones like the S2 
and S3 have by default external memory + and SD-card can be inserted to extend 
the memory. All of this memory however is the same for Android.

So the solution is to implement a file/directory selection activity. The Bgreco 
Datepicker (http://www.bgreco.net/directorypicker/) seems a good start but 
needs a better implementation.

So the option will stay the same in the preferences.
If clicked no text input box is shown but a selection activity is started in 
which a directory can be selected. The selected directory is then stored in the 
preferences.

If the selection activity is started with an unknown directory the default 
backup directory will be selected.

Original comment by dirkvran...@gmail.com on 28 Aug 2012 at 9:47

GoogleCodeExporter commented 8 years ago

Original comment by dirkvran...@gmail.com on 28 Aug 2012 at 11:52

GoogleCodeExporter commented 8 years ago

Original comment by dirkvran...@gmail.com on 28 Aug 2012 at 1:01