摘要: public class Test { public static boolean isHex(String str) { boolean isHexFlg = true; int i = 0; char c; for (i = 0; i = '0' ) && ( c = 'A' ) && ( c = 'a' ) && ( c <= 'f' ) ) ) { isHexFlg = false; } } ret... 阅读全文
posted @ 2014-04-10 17:27 freedragon 阅读(434) 评论(0) 推荐(0) 编辑
摘要: SharedPreferences easy useimport android.content.Context;import android.content.SharedPreferences;import android.content.SharedPreferences.Editor;import android.preference.PreferenceManager;public class PreferenceUtils { public static String getPrefString(Context context, String key, final Strin... 阅读全文
posted @ 2014-04-10 16:31 freedragon 阅读(1150) 评论(0) 推荐(0) 编辑