Google recommends to use ResponseHandler for parsing contents of the
entity, so I use the following code.
Also there you can easily handle compressed (gziped) contents.
As for encoding, first you should try to extract encoding information
from the header.
private ResponseHandler responseHa
One other little flaw there -- possibly serious -- is not specifying the
encoding in the new InputStreamReader(stream, encoding) call.
Generally, you should use UTF-8 if you have a choice -- and you should use
what was supplied by the server, in any event. If you're writing the server,
make it
Your analysis is correct, but I can't agree with your advice.
Exceptions should generally be handled as far out as possible, for several
reasons.
First, handling them too far deep into your application limits your ability
to do anything useful about them.
Exception handling too deeply limits r
On Sep 27, 3:44 pm, "daniel_nyb...@hotmail.com"
wrote:
> Help Me, please !
> I'm pretty new on Android, but I've been struggeling with this code 10
> hours now, and needs help.
> I am trying to read the data from a web site, (in string format).
> The problem is that, after executed the row "res
4 matches
Mail list logo