Code example for ResolveInfo

Methods: loadIcon, loadLabel

0
            altName = info.activityInfo.applicationInfo.sourceDir.replaceFirst("/system/app/", "").split("\\.apk")[0];
        } 
    } 
 
    public void retrieveInfo(PackageManager pm) {
        this.icon = info.loadIcon(pm);
        this.label = (String) info.loadLabel(pm);
    } 
 
    public ResolveInfo getInfo() {
        return info;
    } 
 
    public Type getType() { 
        return type;
    } 
 
    public String getAltName() {
        return altName;
    }