Java tutorial
//package com.java2s; import android.widget.TextView; public class Main { /** * Return whether Edit text is empty * @return */ public static boolean isTextViewNotEmpty(TextView textView) { return textView.getText() != null && !textView.getText().toString().equals(""); } }