Java tutorial
//package com.java2s; //License from project: Open Source License import android.text.TextUtils; import android.util.Log; public class Main { public static boolean isAdmin(String xxx) { if (xxx.length() < 5) { return false; } xxx = xxx.substring(2, 5); Log.d("AdminUtils", xxx); if (TextUtils.equals(xxx, "gly")) { return true; } return false; } }