Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { public static boolean isEmptyString(CharSequence str) { return TextUtils.isEmpty(str) || "null".equals(str); } }