Java tutorial
//package com.java2s; public class Main { public static boolean isNetUrl(String url) { if (url != null && url.toLowerCase().startsWith("http") || url.toLowerCase().startsWith("rtsp") || url.toLowerCase().startsWith("mms")) { return true; } return false; } }