Java tutorial
//package com.java2s; import android.util.Log; public class Main { public static final String TAG = "OAuthHelper"; private static String errorMessage = "Error during OAuth"; /** * Clients can retrieve error messages statically. * * @return errorMessage */ public static String getErrorMessage() { Log.i(TAG, "getErrorMessage = " + errorMessage); return errorMessage; } }