Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { public static boolean isNullOrBlank(String content) { if (content == null || TextUtils.isEmpty(content.trim())) { return true; } return false; } }