Code example for PermissionInfo

Methods: loadLabel

0
     * @param permInfo Information you can retrieve about a particular security 
     *            permission known to the system. 
     */ 
    public void addPermission(Context context, PermissionInfo permInfo) {
 
        if (!permissionsNames.contains(permInfo.loadLabel(context.getPackageManager()))) {
            permissionsNames.add((String) permInfo.loadLabel(context.getPackageManager()));
        } 
    } 
 
    /** 
     * Getter Method. 
     *  
     * @return the name of the group. 
     */ 
    public String getGroupName() {
        return groupName;
    } 
 
    /** 
     * Getter Method.