Java tutorial
//package com.java2s; import android.webkit.URLUtil; public class Main { public static boolean isVaildUrl(String url) { if (url == null || url.trim().equals("")) { return false; } return URLUtil.isValidUrl(url.trim()); } }