I am new to android and currently developing an app.. Just wanted to know what exactly does an http entity does? Also please tell me, why it gives me an error on the following code:
HttpClient cl=new HttpClient // Cannot instantiate HttpClient
but this works..
HttpClient cl=new DefaultHttpClient
If you have any resources related to httpclient and webservices please tell!
Thanks a lot for your help!
HttpClient is an abstract interface so it can’t be instantiated. DefaultHttpClient implements HttpClient (through the AbstractHttpClient interface) so you can instantiate that
You would probably want to read up on abstract classes and interfaces and become familiar with them.