Java tutorial
//package com.java2s; import android.widget.EditText; public class Main { /** * check EditText is empty or not * * @param edText pass EditText for check is empty or not * @return true or false */ public static boolean isEmptyEditText(EditText edText) { return edText.getText().toString().trim().length() <= 0; } }