Is there a good way to avoid the \"host is not resolved\" error that crashes an app? Some sort of a way to try connecting to a host ( like a URL ) and see if it\'s even vali
URLUtil.isValidUrl(url);
If this doesn't work you can use:
Patterns.WEB_URL.matcher(url).matches();