Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refactoring: Network cleanup | Samuel Tardieu | 2012-04-24 | 2 | -18/+15 |
| | |||||
* | Refactoring: remove final modifier on some methods | Samuel Tardieu | 2012-04-22 | 1 | -1/+1 |
| | | | | | final adds nothing to methods declared in classes declared final or to private methods. | ||||
* | Refactoring: cleanup control flow | Samuel Tardieu | 2012-04-20 | 2 | -15/+14 |
| | |||||
* | Add FIXME: message and ask for clarification | Samuel Tardieu | 2012-04-20 | 1 | -18/+17 |
| | |||||
* | NPE when starting without Network | Portree-Kid | 2012-04-20 | 1 | -1/+1 |
| | |||||
* | Refactoring: centralize all network accesses through a single point | Samuel Tardieu | 2012-04-18 | 1 | -70/+91 |
| | |||||
* | Add the possibility to merge or extend Parameters objects | Samuel Tardieu | 2012-04-18 | 1 | -5/+41 |
| | |||||
* | Refactoring: move Login from network to connector.gc | Samuel Tardieu | 2012-04-17 | 1 | -422/+0 |
| | |||||
* | Refactoring: move getRequestLogged/postRequestlogged into Login | Samuel Tardieu | 2012-04-17 | 2 | -44/+42 |
| | |||||
* | Refactoring: separate Cookies into their own file | Samuel Tardieu | 2012-04-17 | 3 | -44/+51 |
| | |||||
* | Refactoring: put the header into a common place | Samuel Tardieu | 2012-04-17 | 1 | -2/+1 |
| | |||||
* | Refactoring: remove unused method | Samuel Tardieu | 2012-04-17 | 1 | -5/+0 |
| | |||||
* | Refactoring: use Parameters as a type | Samuel Tardieu | 2012-04-17 | 1 | -4/+3 |
| | |||||
* | Refactoring: response cannot be null | Samuel Tardieu | 2012-04-17 | 1 | -1/+1 |
| | |||||
* | Refactoring: use isSuccess() when possible | Samuel Tardieu | 2012-04-17 | 1 | -1/+1 |
| | |||||
* | Refactoring: use common method to retrieve JSON | Samuel Tardieu | 2012-04-17 | 1 | -15/+7 |
| | |||||
* | Refactoring: rename request into getRequest | Samuel Tardieu | 2012-04-17 | 3 | -22/+19 |
| | | | | Those methods only do GET requests. | ||||
* | Refactoring: do not use cgBase from Network | Samuel Tardieu | 2012-04-17 | 1 | -21/+3 |
| | |||||
* | Fix #1408: do not discard cache when saving cache data | Samuel Tardieu | 2012-04-16 | 1 | -2/+2 |
| | | | | | There is no reason to not use the cache when saving a cache whose images are already present in the device. | ||||
* | Merge branch 'common-network-code' into upstream | Samuel Tardieu | 2012-04-13 | 3 | -28/+58 |
|\ | | | | | | | | | Conflicts: main/src/cgeo/geocaching/CacheDetailActivity.java | ||||
| * | Add the possibility to set headers to a GET request | Samuel Tardieu | 2012-04-12 | 1 | -10/+36 |
| | | |||||
| * | Cleanup: do not add Content-Type to GET request | Samuel Tardieu | 2012-04-12 | 3 | -22/+26 |
| | | | | | | | | | | Whatever code requests its presence is probably wrong, as Content-Type describes the type of the body, which is non-existent for a GET request. | ||||
* | | refactoring: remove the logging tag from settings | Bananeweizen | 2012-04-12 | 3 | -36/+34 |
|/ | |||||
* | Remove never-used actualMemberStatus | Samuel Tardieu | 2012-04-11 | 1 | -11/+0 |
| | |||||
* | Remove unused methods | Samuel Tardieu | 2012-04-11 | 1 | -6/+0 |
| | | | | Those methods have been flagged as unused by proguard. | ||||
* | Refresh the data of confirmed cached data | Samuel Tardieu | 2012-04-02 | 1 | -2/+7 |
| | | | | | | When cached data is confirmed valid by a 304 (use local copy) response from the web server, reset the file date, since the file is as good as new. | ||||
* | Do not use stale information if the cache file does not exist anymore | Samuel Tardieu | 2012-04-02 | 1 | -1/+1 |
| | | | | | | Saved ETag or Last-Modified information is useless and should not be used if, for any reason, the file holding the cached data has been removed from permanent storage. | ||||
* | Proxy all logs through cgeo.geocaching.utils.Log | Samuel Tardieu | 2012-03-31 | 3 | -3/+3 |
| | | | | | | | | 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 images | Samuel Tardieu | 2012-03-25 | 2 | -46/+34 |
| | | | | | | | | | | | | | | | | | 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. | ||||
* | Add method to refresh cache and some cleanup | campbeb | 2012-03-24 | 2 | -0/+34 |
| | |||||
* | static code analysis and other fixes | Bananeweizen | 2012-03-18 | 1 | -8/+17 |
| | | | | | | | * NumberParsingExceptions, NullPointerExceptions * StringBuilder instead of StringBuffer * access rights * interfaces instead of classes * ... | ||||
* | refactoring: first part of removing cgBase | Bananeweizen | 2012-03-10 | 4 | -5/+756 |
| | | | | | | | * 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 caches | Bananeweizen | 2012-03-09 | 1 | -6/+2 |
| | |||||
* | Moved methods to better fitting classes | blafoo | 2012-02-29 | 1 | -1/+1 |
| | |||||
* | Changed database handling | blafoo | 2012-02-08 | 1 | -1/+2 |
| | |||||
* | refactoring: moved some classes to packages, renaming | Bananeweizen | 2012-01-22 | 2 | -1/+74 |
| | |||||
* | Fix #903 Rename field "reason" to "listId" | blafoo | 2011-12-19 | 1 | -4/+4 |
| | |||||
* | refactoring: clean some TODOs in the code | Bananeweizen | 2011-12-02 | 1 | -4/+2 |
| | |||||
* | fix: images of GC caches not loaded due to relative URLs | Bananeweizen | 2011-11-30 | 1 | -1/+7 |
| | |||||
* | fix: use 1x1 transparent image instead of undefined image for counter | bananeweizen | 2011-11-26 | 1 | -2/+6 |
| | | | banners (avoids small blue/violet square in description) | ||||
* | fix: use finally block for closing resource | bananeweizen | 2011-11-26 | 1 | -5/+11 |
| | |||||
* | fix: avoid out of memory when decoding large bitmaps | Bananeweizen | 2011-11-25 | 1 | -13/+25 |
| | |||||
* | add another counter image to blacklist | Bananeweizen | 2011-11-25 | 1 | -1/+2 |
| | |||||
* | fix several FindBugs warnings | Bananeweizen | 2011-11-19 | 1 | -1/+1 |
| | | | | | | * methods starting with uppercase letter * unused field and access methods * null value not explicitly given as null argument in method call * unnecessary math.floor() | ||||
* | Create directories only when we will write a file | Samuel Tardieu | 2011-11-16 | 1 | -2/+2 |
| | | | | | | | | 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. | ||||
* | Cache images systematically | Samuel Tardieu | 2011-11-01 | 1 | -22/+3 |
| | | | | See discussion in #742. | ||||
* | Decode images that are not saved to disk | Samuel Tardieu | 2011-11-01 | 1 | -0/+11 |
| | | | | This fixes #742. | ||||
* | Update log messages to reflect the source class name | Samuel Tardieu | 2011-11-01 | 1 | -5/+5 |
| | |||||
* | fix #731: OOM in images when downloading | bananeweizen | 2011-10-30 | 1 | -0/+221 |
| | |||||
* | Use existing HTTP connection code for Twitter authorization dialog | Samuel Tardieu | 2011-10-10 | 1 | -0/+35 |
Also, move OAuth signing into package cgeo.geocaching.network. This is a tentative fix for #280. |