Here you can find the source of checkTextView(TextView textView)
public static String checkTextView(TextView textView)
//package com.java2s; import android.widget.TextView; public class Main { public static String checkTextView(TextView textView) { if (textView != null && !textView.getText().toString().equals("")) { return textView.getText().toString(); } else {//from ww w .j a v a 2s. c o m return ""; } } }