Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { public static boolean isEmptyText(String txt) { if (TextUtils.isEmpty(txt)) return true; else return false; } }