Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { public static boolean checkUrlNotNull(String url) { return url != null && !TextUtils.isEmpty(url) && url.trim().length() != 0; } }