Ejemplo n.º 1
0
 public String toString() {
   return "[NAME:"
       + mSystemName
       + ";TRAN:"
       + mTransports
       + ";VER:"
       + mVersion
       + ";COUNTRY:"
       + StringUtil.join(mCountry, ",")
       + ";CITY:"
       + StringUtil.join(mCity, ",")
       + ";LOCALES="
       + StringUtil.join(mLocales, ",")
       + ";URL="
       + mUrl
       + "]";
 }
Ejemplo n.º 2
0
 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;
   }
 }
Ejemplo n.º 3
0
 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) {
     }
   }
 }