Code example for AsyncTaskLoader

Methods: deliverResult

    public void deliverResult(List<Map<String, String>> 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 { 
Contextual code suggestions in your IDE  Get Codota for Java