Android examples for User Interface:EditText
is EditText Empty
//package com.java2s; import android.widget.EditText; public class Main { public static boolean isEmpty(EditText et) { if (et == null) { return true; }/*from w w w. j a v a 2 s . c om*/ if (et.getText().toString().equals("")) { return true; } else { return false; } } }