Code example for ActivityInfo

Methods: loadLabel

0
        PackageManager pm = getPackageManager();
        CharSequence labelSeq = null;
        try { 
          ActivityInfo info = pm.getActivityInfo(this.getComponentName(),
              PackageManager.GET_META_DATA);
          labelSeq = info.loadLabel(pm);
        } catch (NameNotFoundException e) {
          e.printStackTrace();
          return false; 
        } 
 
        String[] components = labelSeq.toString().split("/");
        if (components[components.length - 1].equals("Purgeable")) {
            return true; 
        } else { 
            return false; 
        } 
    } 
 
    private String getDialogMessage(boolean isOutOfMemory, int index) {
         StringBuilder sb = new StringBuilder();