Java tutorial
//package com.java2s; import android.widget.EditText; public class Main { public static boolean isEditTextEmpty(EditText eText) { return eText != null && !isEmpty(eText.getText().toString()); } public static boolean isEmpty(String str) { return str != null && !str.equals(""); } }