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) { if (edText.getText().toString().trim().length() > 0) return false; else return true; } }