Does anybody know when exactly UnknownHostException is thrown when making a connection in Android? T...
a
Does anybody know when exactly UnknownHostException is thrown when making a connection in Android? To me it seems that it could either be a DNS error, the server is down, or the client has no connection, but I’m not sure.
😶 6
p
I believe it's when OS cannot resolve a domain name.
And, there can be several reasons why the name cannot be resolved.