Google Volley Underscore Host Name

I am using the new Volley http stack from Google in my actual Android project. Everything went fine until I got the hostname with an underscore in it (this is a known java.net.URL error when it ignores hosname). Is there any known workaround for this error? Or any other library that can handle it?

An exception is the following:

com.android.volley.NoConnectionError: java.net.UnknownHostException

Thanks for the advance!

Cheers, Gabor

+4
source share

Source: https://habr.com/ru/post/1490297/


All Articles