package com.novoda.downloadmanager;

import android.content.ContentResolver;
import android.content.Context;

import com.novoda.downloadmanager.lib.DownloadManager;

/**
 * A client can specify whether the downloads are allowed to proceed by implementing
 * {@link com.novoda.downloadmanager.lib.DownloadClientReadyChecker} on your Application class
 *
 */
public class DownloadManagerBuilder {

    private final Context context;

    private boolean verboseLogging;

    DownloadManagerBuilder(Context context) {
        this.context = context;
    }

    public static DownloadManagerBuilder from(Context context) {
        return new DownloadManagerBuilder(context.getApplicationContext());
    }

    public DownloadManagerBuilder withVerboseLogging() {
        this.verboseLogging = true;
        return this;
    }

    public DownloadManager build(ContentResolver contentResolver) {
        if (contentResolver == null) {
            throw new IllegalStateException("You must use a ContentResolver with the DownloadManager.");
        }
        return new DownloadManager(context, contentResolver, verboseLogging);
    }

}

package com.novoda.downloadmanager;

import android.content.ContentResolver;
import android.content.Context;

import com.novoda.downloadmanager.lib.DownloadManager;

/**
 * A client can specify whether the downloads are allowed to proceed by implementing
 * {@link com.novoda.downloadmanager.lib.DownloadClientReadyChecker} on your Activity class
 *
 */
public class DownloadManagerBuilder {

    private final Context context;

    private boolean verboseLogging;

    DownloadManagerBuilder(Context context) {
        this.context = context;
    }

    public static DownloadManagerBuilder from(Context context) {
        return new DownloadManagerBuilder(context.getApplicationContext());
    }

    public DownloadManagerBuilder withVerboseLogging() {
        this.verboseLogging = true;
        return this;
    }

    public DownloadManager build(ContentResolver contentResolver) {
        if (contentResolver == null) {
            throw new IllegalStateException("You must use a ContentResolver with the DownloadManager.");
        }
        return new DownloadManager(context, contentResolver, verboseLogging);
    }

}

--- 
+++ 
@@ -7,7 +7,7 @@
 
 /**
  * A client can specify whether the downloads are allowed to proceed by implementing
- * {@link com.novoda.downloadmanager.lib.DownloadClientReadyChecker} on your Activity class
+ * {@link com.novoda.downloadmanager.lib.DownloadClientReadyChecker} on your Application class
  *
  */
 public class DownloadManagerBuilder {
Replace Activity by Application as it what it needs
