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

preview_player
Показать описание
Take a FREE introductory instructor-led Live class at :

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

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();

HttpGet request = new HttpGet();

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

Рекомендации по теме
Комментарии
Автор

I did just the same, and it gives me a java.lang.RuntimeException: An error occured while executing doInBackground()

????

blach
join shbcf.ru