Here you can find the source of isBlank(String string)
public static final boolean isBlank(String string)
//package com.java2s; import android.widget.EditText; public class Main { public static final boolean isBlank(EditText editText) { return editText == null || editText.getText() == null || editText.getText().toString() == null || editText.getText().toString().trim().equals(""); }/* www. j ava 2 s . c o m*/ public static final boolean isBlank(String string) { return string == null || string.trim().equals(""); } }