Java tutorial
//package com.java2s; import android.widget.EditText; public class Main { public static boolean isEmptyTextEditText(EditText editText) { boolean isEmpty = true; if (editText.getText() != null && editText.getText().toString() != null && !"".equals(editText.getText().toString().trim())) { isEmpty = false; } return isEmpty; } }