Example #1
0
 public static void dumpBundle(Bundle bundle) {
   if (bundle != null) {
     Set<String> keys = bundle.keySet();
     Iterator<String> it = keys.iterator();
     L.debug("Dumping start");
     while (it.hasNext()) {
       String key = it.next();
       L.debug("[" + key + "=" + bundle.get(key) + "]");
     }
     L.debug("Dumping end");
   }
 }
Example #2
0
  public static Bundle getManifestProperty() {
    try {
      ApplicationInfo ai =
          getContext()
              .getPackageManager()
              .getApplicationInfo(getContext().getPackageName(), PackageManager.GET_META_DATA);

      return ai.metaData;
    } catch (Exception e) {
      L.error(e, e.getMessage());
    }
    return null;
  }