Android Tutorial: Http Coding Example (Part-3) | Edureka

Publicado em: 29 Janeiro 2013
no canal de: edureka!
5,999
2

Take a FREE introductory instructor-led Live class at :

http://www.edureka.co/android-develop...

---------------------------------------------------------

An URLConnection is used to send and receive data over the web. Data may be of any type and length. This class may be used to send and receive streaming data whose length is not known in advance.

HttpClient Objects are required to execute HTTP requests and HttpGet() method retrieves the information defined by Requested-Uri and save it in HttpResponse Object.

Sample code :

HttpClient client = new DefaultHttpClient();
URI uri = new URI("http://www.edureka.co");

HttpGet request = new HttpGet();
request.setURI(uri);
HttpResponse response = client.execute(request);


Watch all videos of this series -    • Android Tutorial - Web Interaction (Part 5)  


---------------------------------------------------------
Please write back to us at support@edureka.co or call us at +91-8880862004 for more information.

http://www.edureka.co


Visit - http://www.edureka.co/android-develop...


Nesta página do site você pode assistir ao vídeo on-line Android Tutorial: Http Coding Example (Part-3) | Edureka duração online em boa qualidade , que foi baixado pelo usuário edureka! 29 Janeiro 2013, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 5,999 vezes e gostou 2 espectadores. Boa visualização!