aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/files/LocalStorage.java
Commit message (Collapse)AuthorAgeFilesLines
* fix #3714: NPE in deleteDirectory()Samuel Tardieu2014-04-021-4/+9
|
* Merge branch 'release' into upstreamSamuel Tardieu2014-01-211-1/+1
|\
| * fix #3559: add picture to log fails on KitKatSamuel Tardieu2014-01-211-1/+1
| |
* | Prevent concurrent writings of the same fileSamuel Tardieu2014-01-191-4/+7
| |
* | Use RxJava.Action1 instead of our RunnableWithArgumentSamuel Tardieu2014-01-111-1/+0
| |
* | refactoring: add @Nullable annotationsSamuel Tardieu2014-01-111-4/+4
|/
* refactoring: findbugs cleanupsBananeweizen2013-10-021-1/+3
|
* refactoring: add nullness annotationsSamuel Tardieu2013-09-151-2/+4
|
* Use Apache commons IOUtils rather than our ownSamuel Tardieu2013-09-151-1/+1
|
* Merge branch 'release' into upstreamSamuel Tardieu2013-09-151-1/+8
|\
| * fix #3262: c:geo does not handle inline imagesSamuel Tardieu2013-09-151-1/+8
| |
* | refactoring: do not use default encodingSamuel Tardieu2013-09-141-6/+13
| | | | | | | | | | | | For headers and mount point parsing, we use UTF-8, which is almost certainly the default on the platform, even if only the ASCII plane is likely to be used.
* | refactoring: cgeoapplication -> CgeoApplicationSamuel Tardieu2013-09-131-2/+2
|/
* refactoring #3159: file copy exception handlingBananeweizen2013-08-221-11/+12
| | | * as discussed on github for #3159
* Fixes #3159, Backup failingrsudev2013-08-221-2/+1
| | | | | Moved file close back to catch block. Courtesy Marco-Jacob!
* refactoring: more findbugs cleanupBananeweizen2013-08-181-3/+4
|
* refactoring: fix findbugs issuesBananeweizen2013-08-181-8/+13
|
* refactoring: move storages detection to LocalStorage classBananeweizen2013-08-051-0/+46
|
* refactoring: extract constantBananeweizen2013-07-181-2/+5
|
* #1348: use buffered ioBananeweizen2013-05-111-10/+9
|
* refactoring: use exception object in logggingBananeweizen2013-01-121-1/+1
|
* Merge branch 'release' into upstreamSamuel Tardieu2013-01-051-2/+8
|\ | | | | | | | | Conflicts: main/res/values/strings.xml
| * fix #2336: support for secondary users in multi-users modeSamuel Tardieu2013-01-051-2/+8
| | | | | | | | | | | | | | | | | | This will allow c:geo to work correctly in multi-users mode as long as the default settings (keep files on internal sd card or phone memory) are used. Files stored on secondary memory will still be shared between users, but the permissions should be allowing that.
* | Refactoring: narrow scope of variablesSamuel Tardieu2012-12-181-2/+2
|/
* fix #2153: NPE on file deletionBananeweizen2012-11-101-0/+4
|
* Refactoring: add missing override annotationsSamuel Tardieu2012-05-231-0/+1
| | | | This was requested by SammysHP.
* Use httpclientandroidlib instead of plain old httpclientSamuel Tardieu2012-05-231-2/+2
|
* Refactoring: simplify codeSamuel Tardieu2012-05-151-3/+1
|
* Refactoring: simplify if statementSamuel Tardieu2012-05-151-4/+1
|
* Merge pull request #1555 from rsudev/ext_dbBananeweizen2012-05-131-3/+19
|\ | | | | Allow to move the c:geo database to the sdcard.
| * Allow to move the c:geo database to the sdcard.rsudev2012-05-121-3/+19
| | | | | | | | Partially implements issue #11
* | fixes #1512 : deletes all static maps for waypoints of a cache on refreshMarco Jacob2012-05-121-0/+45
|/
* fix #1459: Refactoring navigation menuBananeweizen2012-05-051-7/+7
|
* Refactoring: simplify getExtension computationSamuel Tardieu2012-04-281-6/+1
|
* Fix #1461: do not save metadata if data could not be savedSamuel Tardieu2012-04-271-8/+13
| | | | | Also, remove partially saved file on error to avoid reusing it by mistake.
* refactoring: remove the logging tag from settingsBananeweizen2012-04-121-7/+6
|
* refactoring: more static code analysis cleanupsBananeweizen2012-04-021-2/+3
|
* Proxy all logs through cgeo.geocaching.utils.LogSamuel Tardieu2012-03-311-1/+1
| | | | | | | | The behaviour is unchanged, but altering Settings.isDebug() to return false will prevent verbose, debug and info levels messages from being logged. Part of work on #1301.
* Cache ETag and Last-Modified HTTP headers for imagesSamuel Tardieu2012-03-251-2/+51
| | | | | | | | | | | | | | | | | Instead of comparing the "Last-Modified" dates and adding a round-trip to the server, this now caches the "ETag" and "Last-Modified" headers if they are present in the server HTTP response. Those values are given back (using respectively "If-None-Match" and "If-Modified-Since" request headers) to the server when requesting an update. Most servers will answer with a "304" (use local copy) if the requested resource has not been updated. In the unlikely case that the server does not honor those headers, the image will be refreshed in any case, so we will not serve old images to the user. The rationale for storing the "Last-Modified" return value is to conform to RFC 2616 advice to treat it as opaque because the server might do an exact string comparison instead of an ordered date comparison.
* refactoring: first part of removing cgBaseBananeweizen2012-03-101-0/+14
| | | | | | | * extract network stuff (non GC related) * extract GC login stuff * move UI related pieces to activities * to do: move parsing and searching to better places, remove cgBase completely afterwards
* fix #1238: Fatal Error while updating stored cachesBananeweizen2012-03-091-8/+30
|
* refactoring: clean some TODOs in the codeBananeweizen2011-12-021-2/+1
|
* refactoring: more Findbugs cleanupsbananeweizen2011-12-011-1/+9
| | | | * Used Findbugs 2.0 RC1. You are encouraged to also give it a try to find issues in the new version before release.
* Create directories only when we will write a fileSamuel Tardieu2011-11-161-17/+18
| | | | | | | | The directory structure should not be created when we are trying to read a file, especially if this file is located into the secondary storage area where we look "just in case". This fixes #802.
* Remove comparisons to booleansSamuel Tardieu2011-10-091-0/+9
|
* Move local storage directory name into LocalStorageSamuel Tardieu2011-10-081-2/+6
|
* Further factor stream to stream copyingSamuel Tardieu2011-10-061-16/+16
|
* Reorganize and cleanup the local storage handlingSamuel Tardieu2011-10-061-0/+217
After the HTTP requests cleanup, it was time to rewrite the local storage handling. Code that manipulate files has been placed into a new LocalStorage class. It can locate files on the disk, retrieve web responses and store them, and copy files.