String myFeed = getString( R.string.my_feed); 
try { 
URL url = new URL( myFeed);
 // Create a new HTTP URL connection 
URLConnection connection = url.openConnection(); 
HttpURLConnection httpConnection = (HttpURLConnection) connection;
 int responseCode = httpConnection.getResponseCode(); 
if (responseCode = = HttpURLConnection.HTTP_OK) {
 InputStream in = httpConnection.getInputStream(); processStream( in); } } 
catch (MalformedURLException e) { Log.d( TAG, "Malformed URL Exception."); }
 catch (IOException e) { Log.d( TAG, "IO Exception."); }

Meier, Reto (2012-04-05). Professional Android 4 Application Development 
(Wrox Professional Guides) (Kindle Locations 5402-5407). John Wiley and 
Sons. Kindle Edition. 

On Tuesday, December 4, 2012 8:01:14 AM UTC-6, Tom wrote:
>
> Hi,
>
>  if know anyone answer this question "How to send and receive the datas 
> from webserver to client server using htttpurlconnection?". please help me..
>
> Thanks in advance...
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to