Java tutorial
//package com.java2s; //License from project: Apache License import android.widget.TextView; public class Main { public static String getText(TextView textView) { if (textView != null) { return textView.getText().toString(); } else { return ""; } } }