Android: Offline Beta 2

This patch implements delayed/offline replay of mark-read type actions and fixes many bugs found in the first beta, including #537, #564, #566, and more.  It also reduces memory and battery use.

This is by no means 100% bug-free, but I think it is a good candidate for B2, as it fixes some of the more noisome bugs and actually lets you read offline without losing track of what was read.  The latter will need lots of testing, and the sooner the better.

I would suggest we push to the Beta channel after about a day of testing from @samuelclay and @manderson23 if no servere bugs are found.
One of the dev talks at IO last year suggested removing all HURLC
customizations if you didn't need to support <3.0 devices, but I can't find
any docs supporting it, so you might be right.  If nothing else, I might
add one for image fetching, since unlike API calls, we don't control the
source and could get bogged down by a single bad apple.

On 8 September 2014 14:53, Mark Anderson <notifications@github.com> wrote:

> In clients/android/NewsBlur/src/com/newsblur/util/ImageCache.java:
>
> > @@ -52,7 +53,7 @@ public void cacheImage(String url) {
> >              File f = new File(cacheDir, fileName);
> >
> >              URL u = new URL(url);
> > -            HttpURLConnection conn = (HttpURLConnection) u.openConnection();
> > +            conn = (HttpURLConnection) u.openConnection();
> >              conn.setInstanceFollowRedirects(true);
>
> The javadoc still suggests that the default is no timeout for both. I
> agree with using nicer HTTP libraries though. HttpURLConnection is pretty
> clunky.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/samuelclay/NewsBlur/pull/568/files#r17269717>.
>