Java tutorial
//package com.java2s; import android.widget.TextView; public class Main { public static String getValue(TextView v) { String err_msg_which = ""; String value = ""; if (v != null) { value = v.getText().toString(); } else { err_msg_which = "TextView"; String err_msg_format = "%s is null"; // LogU.eLog(String.format(err_msg_format, err_msg_which)); } return value; } }