https://kotlinlang.org logo
#android
Title
# android
a

alex.tavella

04/14/2021, 9:25 PM
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.
And, there can be several reasons why the name cannot be resolved.
16 Views