Here you can find the source of isBlank(EditText editText)
public static final boolean isBlank(EditText editText)
//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(""); }// w ww . ja va2 s. c o m public static final boolean isBlank(String string) { return string == null || string.trim().equals(""); } }