<?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>Commentaires sur : Different ways to access HTTP resources from Android</title>
	<atom:link href="http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/</link>
	<description>Open Source Software, Java, Ruby, Agility</description>
	<lastBuildDate>Fri, 03 Sep 2010 12:16:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>Par : Chethan</title>
		<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/comment-page-1/#comment-31122</link>
		<dc:creator>Chethan</dc:creator>
		<pubDate>Tue, 07 Sep 2010 11:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dahanne.net/?p=227#comment-31122</guid>
		<description>Brilliant article......Made my life easy...thanks</description>
		<content:encoded><![CDATA[<p>Brilliant article&#8230;&#8230;Made my life easy&#8230;thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Ricos</title>
		<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/comment-page-1/#comment-31112</link>
		<dc:creator>Ricos</dc:creator>
		<pubDate>Tue, 07 Sep 2010 01:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dahanne.net/?p=227#comment-31112</guid>
		<description>This is a great article.
But I have a question. 
If HTTP connection was disconnected while receiving the response via InputStream, could I detect this failour?
I tested it on emulator, but no any exception is occurred in this case.

Best Regards.
Ricos.</description>
		<content:encoded><![CDATA[<p>This is a great article.<br />
But I have a question.<br />
If HTTP connection was disconnected while receiving the response via InputStream, could I detect this failour?<br />
I tested it on emulator, but no any exception is occurred in this case.</p>
<p>Best Regards.<br />
Ricos.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Ritesh Sahoo</title>
		<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/comment-page-1/#comment-31102</link>
		<dc:creator>Ritesh Sahoo</dc:creator>
		<pubDate>Tue, 07 Sep 2010 10:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dahanne.net/?p=227#comment-31102</guid>
		<description>Hi, I am having issues as to how i can pars and extract the XML contnet and attachment from an Httpurlconnection. Please help . Sample source code will be great help.

Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi, I am having issues as to how i can pars and extract the XML contnet and attachment from an Httpurlconnection. Please help . Sample source code will be great help.</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : pedro teixeira</title>
		<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/comment-page-1/#comment-31098</link>
		<dc:creator>pedro teixeira</dc:creator>
		<pubDate>Tue, 07 Sep 2010 03:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dahanne.net/?p=227#comment-31098</guid>
		<description>Can someone help me with this? To make the &quot;Second Method : getting an input stream given a simple url from Android using HttpClient&quot; able to send also an Array of strings to receive later in PHP instead of being limited to a BasicNamePair ? 

Thank you... 

Any help is REALLY WELCOME with this :/</description>
		<content:encoded><![CDATA[<p>Can someone help me with this? To make the &laquo;&nbsp;Second Method : getting an input stream given a simple url from Android using HttpClient&nbsp;&raquo; able to send also an Array of strings to receive later in PHP instead of being limited to a BasicNamePair ? </p>
<p>Thank you&#8230; </p>
<p>Any help is REALLY WELCOME with this :/</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : pedro teixeira</title>
		<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/comment-page-1/#comment-31095</link>
		<dc:creator>pedro teixeira</dc:creator>
		<pubDate>Tue, 07 Sep 2010 05:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dahanne.net/?p=227#comment-31095</guid>
		<description>Hi there again, how can we POST an array, instead of the value pair?</description>
		<content:encoded><![CDATA[<p>Hi there again, how can we POST an array, instead of the value pair?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : pedro teixeira</title>
		<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/comment-page-1/#comment-31093</link>
		<dc:creator>pedro teixeira</dc:creator>
		<pubDate>Tue, 07 Sep 2010 05:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dahanne.net/?p=227#comment-31093</guid>
		<description>Hello there, how can I read de &#039;&#039;content&#039;&#039;, how can I make it back to a String for example? My PHP echo&#039;s a link which I&#039;d like the android to use .. can somebody help me please?</description>
		<content:encoded><![CDATA[<p>Hello there, how can I read de &nbsp;&raquo;content&nbsp;&raquo;, how can I make it back to a String for example? My PHP echo&#8217;s a link which I&#8217;d like the android to use .. can somebody help me please?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : saravanan</title>
		<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/comment-page-1/#comment-31090</link>
		<dc:creator>saravanan</dc:creator>
		<pubDate>Tue, 07 Sep 2010 12:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dahanne.net/?p=227#comment-31090</guid>
		<description>Its very useful for me. how to upload .doc file from android to servlet. like resume attachment from android</description>
		<content:encoded><![CDATA[<p>Its very useful for me. how to upload .doc file from android to servlet. like resume attachment from android</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : rahul krishnan</title>
		<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/comment-page-1/#comment-31084</link>
		<dc:creator>rahul krishnan</dc:creator>
		<pubDate>Tue, 07 Sep 2010 09:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dahanne.net/?p=227#comment-31084</guid>
		<description>Hey.. 
Gr8 articles.. helped us a lot :)

Thank you.</description>
		<content:encoded><![CDATA[<p>Hey..<br />
Gr8 articles.. helped us a lot <img src='http://blog.dahanne.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Romal</title>
		<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/comment-page-1/#comment-31076</link>
		<dc:creator>Romal</dc:creator>
		<pubDate>Tue, 07 Sep 2010 10:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dahanne.net/?p=227#comment-31076</guid>
		<description>//I want to save temparary media file to sdcard using following code

File temp = File.createTempFile(&quot;/sdcard/Sipdroid/mediaplayertmp&quot;, &quot;dat&quot;);
		   						
		   						String tempPath = temp.getAbsolutePath();
		   							            FileOutputStream out = new FileOutputStream(temp);
		   							            byte buf[] = new byte[128];
		   							            do {
		   							                int numread = fis.read(buf);
		   							                if (numread &lt;= 0)
		   							                    break;
		   							                out.write(buf, 0, numread);
		   							            } while (true);
		   							           
		   							            MediaPlayer mp = new MediaPlayer();
		   							            mp.setDataSource(tempPath);
		   							            mp.start();</description>
		<content:encoded><![CDATA[<p>//I want to save temparary media file to sdcard using following code</p>
<p>File temp = File.createTempFile(&laquo;&nbsp;/sdcard/Sipdroid/mediaplayertmp&nbsp;&raquo;, &laquo;&nbsp;dat&nbsp;&raquo;);</p>
<p>		   						String tempPath = temp.getAbsolutePath();<br />
		   							            FileOutputStream out = new FileOutputStream(temp);<br />
		   							            byte buf[] = new byte[128];<br />
		   							            do {<br />
		   							                int numread = fis.read(buf);<br />
		   							                if (numread &lt;= 0)<br />
		   							                    break;<br />
		   							                out.write(buf, 0, numread);<br />
		   							            } while (true);</p>
<p>		   							            MediaPlayer mp = new MediaPlayer();<br />
		   							            mp.setDataSource(tempPath);<br />
		   							            mp.start();</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Philip A.</title>
		<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/comment-page-1/#comment-31071</link>
		<dc:creator>Philip A.</dc:creator>
		<pubDate>Tue, 07 Sep 2010 08:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dahanne.net/?p=227#comment-31071</guid>
		<description>Thanks but that is not a solution ;(.

I&#039;ve tried that but it does nothing!(Like if that&#039;s a large video file, .mp4). Link to an image just open an image, not to save. I want to save :). I meant the webview in the app somehow does not handle the requests like in its real browser!

I&#039;m on Droid 2.0.1.

Philip</description>
		<content:encoded><![CDATA[<p>Thanks but that is not a solution ;(.</p>
<p>I&#8217;ve tried that but it does nothing!(Like if that&#8217;s a large video file, .mp4). Link to an image just open an image, not to save. I want to save <img src='http://blog.dahanne.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . I meant the webview in the app somehow does not handle the requests like in its real browser!</p>
<p>I&#8217;m on Droid 2.0.1.</p>
<p>Philip</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Anthony Dahanne</title>
		<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/comment-page-1/#comment-31069</link>
		<dc:creator>Anthony Dahanne</dc:creator>
		<pubDate>Tue, 07 Sep 2010 04:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dahanne.net/?p=227#comment-31069</guid>
		<description>Hello Philip !
To download a file to hte phone (sdcrad) you just have to create a link to that file (http:∕∕host.com∕file.zip for example), in a webview, and when the user will click on the link, android will ask the user where he wants to download it.</description>
		<content:encoded><![CDATA[<p>Hello Philip !<br />
To download a file to hte phone (sdcrad) you just have to create a link to that file (http:∕∕host.com∕file.zip for example), in a webview, and when the user will click on the link, android will ask the user where he wants to download it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Philip A.</title>
		<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/comment-page-1/#comment-31068</link>
		<dc:creator>Philip A.</dc:creator>
		<pubDate>Tue, 07 Sep 2010 04:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dahanne.net/?p=227#comment-31068</guid>
		<description>Let say I have a tabview which every tab I have pre-loaded an URL with webview. On the page of webview, I have a link to download a file. How can I implement this to download that file to the phone?

Appreciated it!

Philip</description>
		<content:encoded><![CDATA[<p>Let say I have a tabview which every tab I have pre-loaded an URL with webview. On the page of webview, I have a link to download a file. How can I implement this to download that file to the phone?</p>
<p>Appreciated it!</p>
<p>Philip</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Priya</title>
		<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/comment-page-1/#comment-31063</link>
		<dc:creator>Priya</dc:creator>
		<pubDate>Tue, 07 Sep 2010 08:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dahanne.net/?p=227#comment-31063</guid>
		<description>Thanks for the article... It is very useful!</description>
		<content:encoded><![CDATA[<p>Thanks for the article&#8230; It is very useful!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : vidya</title>
		<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/comment-page-1/#comment-31061</link>
		<dc:creator>vidya</dc:creator>
		<pubDate>Tue, 07 Sep 2010 07:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dahanne.net/?p=227#comment-31061</guid>
		<description>hi ,

how can iuse HttpDelete and also post an xml.

Please help.
Thanks</description>
		<content:encoded><![CDATA[<p>hi ,</p>
<p>how can iuse HttpDelete and also post an xml.</p>
<p>Please help.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Shawn</title>
		<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/comment-page-1/#comment-30994</link>
		<dc:creator>Shawn</dc:creator>
		<pubDate>Tue, 07 Sep 2010 05:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dahanne.net/?p=227#comment-30994</guid>
		<description>Has anyone figured out how to send xml as the payload in a POST?  Nothing I do seems to work.  I thin I need to encode the xml somehow but nothing has worked so far.  Any ideas?</description>
		<content:encoded><![CDATA[<p>Has anyone figured out how to send xml as the payload in a POST?  Nothing I do seems to work.  I thin I need to encode the xml somehow but nothing has worked so far.  Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : jit</title>
		<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/comment-page-1/#comment-30860</link>
		<dc:creator>jit</dc:creator>
		<pubDate>Tue, 07 Sep 2010 02:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dahanne.net/?p=227#comment-30860</guid>
		<description>Hi All,

I want a peice of code for https communication.
Objective is sending a xml file to the web server with https.

Thanks and Regards,
jit</description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>I want a peice of code for https communication.<br />
Objective is sending a xml file to the web server with https.</p>
<p>Thanks and Regards,<br />
jit</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Rui Gonçalves</title>
		<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/comment-page-1/#comment-30166</link>
		<dc:creator>Rui Gonçalves</dc:creator>
		<pubDate>Tue, 07 Sep 2010 03:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dahanne.net/?p=227#comment-30166</guid>
		<description>Hi again!

It is possible to change this code
try {
          		HttpClient httpclient = new DefaultHttpClient();
			HttpPost httpPost = new HttpPost(url);
			List nameValuePairs = new ArrayList(1);
                        //this is where you add your data to the post method
                        nameValuePairs.add(new BasicNameValuePair(
			&quot;name&quot;, &quot;anthony&quot;));
			httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
			// Execute HTTP Post Request
			HttpResponse response = httpclient.execute(httpPost);
			content = response.getEntity().getContent();
		        return content;
	        }
in order to send not pairs of values but a xml string?

Thanks for the help,
Best regards!</description>
		<content:encoded><![CDATA[<p>Hi again!</p>
<p>It is possible to change this code<br />
try {<br />
          		HttpClient httpclient = new DefaultHttpClient();<br />
			HttpPost httpPost = new HttpPost(url);<br />
			List nameValuePairs = new ArrayList(1);<br />
                        //this is where you add your data to the post method<br />
                        nameValuePairs.add(new BasicNameValuePair(<br />
			&laquo;&nbsp;name&nbsp;&raquo;, &laquo;&nbsp;anthony&nbsp;&raquo;));<br />
			httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs));<br />
			// Execute HTTP Post Request<br />
			HttpResponse response = httpclient.execute(httpPost);<br />
			content = response.getEntity().getContent();<br />
		        return content;<br />
	        }<br />
in order to send not pairs of values but a xml string?</p>
<p>Thanks for the help,<br />
Best regards!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Rui Gonçalves</title>
		<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/comment-page-1/#comment-30163</link>
		<dc:creator>Rui Gonçalves</dc:creator>
		<pubDate>Tue, 07 Sep 2010 09:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dahanne.net/?p=227#comment-30163</guid>
		<description>Hi!

I know trying it&#039;s the best way to learn but the designated time for this project is very short! I&#039;ll keep you informed! :)

Best regards and thanks for the help,
Rui</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>I know trying it&#8217;s the best way to learn but the designated time for this project is very short! I&#8217;ll keep you informed! <img src='http://blog.dahanne.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Best regards and thanks for the help,<br />
Rui</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : anthony.dahanne</title>
		<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/comment-page-1/#comment-30162</link>
		<dc:creator>anthony.dahanne</dc:creator>
		<pubDate>Tue, 07 Sep 2010 09:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dahanne.net/?p=227#comment-30162</guid>
		<description>No ! I suggest you to try, it is the best way to learn !</description>
		<content:encoded><![CDATA[<p>No ! I suggest you to try, it is the best way to learn !</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Rui Gonçalves</title>
		<link>http://blog.dahanne.net/2009/08/16/how-to-access-http-resources-from-android/comment-page-1/#comment-30160</link>
		<dc:creator>Rui Gonçalves</dc:creator>
		<pubDate>Tue, 07 Sep 2010 08:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dahanne.net/?p=227#comment-30160</guid>
		<description>Hi Anthony!

Thanks for your help so far. It is necessary any additional network configuration in the Android emulator to send the request to the server?

Best regards!</description>
		<content:encoded><![CDATA[<p>Hi Anthony!</p>
<p>Thanks for your help so far. It is necessary any additional network configuration in the Android emulator to send the request to the server?</p>
<p>Best regards!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
