Code example for AsyncTaskLoader

Methods: deliverResult

0
        cancelLoad();
    } 
 
    @Override 
    public void deliverResult(List<Map<String, String>> data) {
        super.deliverResult(data);
    } 
 
    /** 
     * Finds all installed packages that look like they include a known ad framework 
     */ 
    private List<PackageInfo> getAdPackages() {
        Set<PackageInfo> adPackages = new HashSet<PackageInfo>();
 
        PackageManager pm = context.getPackageManager();
        // It'd be simpler to just use pm.getInstalledPackages here, but apparently it's broken 
        List<ApplicationInfo> appInfos = pm.getInstalledApplications(0);
 
        for (ApplicationInfo appInfo : appInfos) {
            try {