public String toString() { return "[NAME:" + mSystemName + ";TRAN:" + mTransports + ";VER:" + mVersion + ";COUNTRY:" + StringUtil.join(mCountry, ",") + ";CITY:" + StringUtil.join(mCity, ",") + ";LOCALES=" + StringUtil.join(mLocales, ",") + ";URL=" + mUrl + "]"; }
public static String getLanguage(Context context) { String code = PreferenceManager.getDefaultSharedPreferences(context).getString(PREFERENCE_LOCALE, "auto"); ObjectRelation.addRelation(code, context); if (StringUtil.isNullOrEmpty(code) || "auto".equalsIgnoreCase(code)) { return mDefaultLocale; } else { return code; } }
public MapPath(String path) { if (path != null) { try { String[] parts = StringUtil.parseStringArray(path); FilePath = parts[0]; ViewName = parts[1]; ObjectRelation.addRelation(parts, path); } catch (Throwable e) { } } }