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.
The default connection settings are pretty reasonable since Honeycomb.

Long term, I would love to switch us to one of the nicer http pooling libs
and then retune.
On 8 Sep 2014 14:30, "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);
>
> I noticed that no timeouts are set here but there are in ImageLoader. Any
> reason for this? I assume we would want to time out here too? If so, I'll
> take a look at cleaning up/sharing code between ImageCache/ImageLoader.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/samuelclay/NewsBlur/pull/568/files#r17268421>.
>