Android examples for java.net:URL
is URL Https
import android.text.SpannableString; import android.text.style.URLSpan; import java.net.URL; import java.net.URLDecoder; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; public class Main{ public static boolean isHttps(String s) { return s.startsWith("https"); }//w w w.j a va2 s . c o m public static boolean isHttps(URL url) { return url.toString().startsWith("https"); } }