Java tutorial
//package com.java2s; import android.widget.TextView; public class Main { public static void updateStatusBar(TextView statusBarMain, int color, String message) { if (statusBarMain != null) { statusBarMain.setTextColor(color); statusBarMain.setText(message); statusBarMain.setSelected(true); statusBarMain.invalidate(); } } }