Java tutorial
//package com.java2s; import android.widget.EditText; public class Main { public static boolean editTextIsNullOrEmpty(EditText editText) { return stringIsNullOrEmpty(editText.getText().toString()); } public static boolean stringIsNullOrEmpty(String cadena) { return (cadena == null || cadena.length() == 0); } }