Java tutorial
//package com.java2s; import android.view.View; import android.widget.TextView; public class Main { public static void showErrorString(TextView showErrorText, String errorString) { showErrorText.setText(errorString); showErrorText.setVisibility(View.VISIBLE); } }