<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using ResponseCache in an Android App</title>
	<atom:link href="http://codebycoffee.com/2010/06/29/using-responsecache-in-an-android-app/feed/" rel="self" type="application/rss+xml" />
	<link>http://codebycoffee.com/2010/06/29/using-responsecache-in-an-android-app/</link>
	<description></description>
	<lastBuildDate>Mon, 02 Apr 2012 22:40:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Marco</title>
		<link>http://codebycoffee.com/2010/06/29/using-responsecache-in-an-android-app/comment-page-1/#comment-576</link>
		<dc:creator>Marco</dc:creator>
		<pubDate>Sat, 22 Oct 2011 12:35:06 +0000</pubDate>
		<guid isPermaLink="false">http://codebycoffee.com/?p=276#comment-576</guid>
		<description>Hi Markus, thank you for your article. :)
I&#039;m having some problems with redirects. Did you noticed this? Seems that the cache lookup is performend only when connection opens the first time and not during redirects :(
Experienced this?</description>
		<content:encoded><![CDATA[<p>Hi Markus, thank you for your article. <img src='http://codebycoffee.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I&#8217;m having some problems with redirects. Did you noticed this? Seems that the cache lookup is performend only when connection opens the first time and not during redirects <img src='http://codebycoffee.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
Experienced this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Markus</title>
		<link>http://codebycoffee.com/2010/06/29/using-responsecache-in-an-android-app/comment-page-1/#comment-131</link>
		<dc:creator>Markus</dc:creator>
		<pubDate>Tue, 25 Jan 2011 17:12:30 +0000</pubDate>
		<guid isPermaLink="false">http://codebycoffee.com/?p=276#comment-131</guid>
		<description>Hi,
I think your code example is great, but unfortunatelly I&#039;m not able to use it in the right way ... 
I want to load an image via a HTTP Request:
    URLConnection conn = url.openConnection();
    conn.setUseCaches(true);
    //if(????)
    conn.connect();
    is = conn.getInputStream();
    bis = new BufferedInputStream(is);
    bmp = BitmapFactory.decodeStream(bis);
    return bmp;

So my problem is now how do I make a right IF() clause to check the cache if the Image has already been loaded or not ?

If you could help me this would be awesome.
Best regards from Austria
Markus</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I think your code example is great, but unfortunatelly I&#8217;m not able to use it in the right way &#8230;<br />
I want to load an image via a HTTP Request:<br />
    URLConnection conn = url.openConnection();<br />
    conn.setUseCaches(true);<br />
    //if(????)<br />
    conn.connect();<br />
    is = conn.getInputStream();<br />
    bis = new BufferedInputStream(is);<br />
    bmp = BitmapFactory.decodeStream(bis);<br />
    return bmp;</p>
<p>So my problem is now how do I make a right IF() clause to check the cache if the Image has already been loaded or not ?</p>
<p>If you could help me this would be awesome.<br />
Best regards from Austria<br />
Markus</p>
]]></content:encoded>
	</item>
</channel>
</rss>

