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
Panu
04/15/2021, 12:59 PM
I believe it's when OS cannot resolve a domain name.
Panu
04/15/2021, 1:02 PM
And, there can be several reasons why the name cannot be resolved.