title: DownloadManager.Request.setNotificationVisibility fails with SecurityException: invalid value for visibility: 2
body: <p>I'm trying to use <code>DownloadManager</code> in a <code>Service</code> class of mine:</p>
  
  <pre><code>    DownloadManager downloadManager = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);
      //imageUri is a valid Uri
      Request downloadRequest= new Request(imageUri); 
      //without this line, it works
      downloadRequest.setNotificationVisibility(DownloadManager.Request.VISIBILITY_HIDDEN);
      //subpath is valid
      downloadRequest.setDestinationInExternalFilesDir(this, null, subPath);
      downloadManager.enqueue(downloadRequest);
  </code></pre>
  
  <p>Without <code>setNotificationVisibility</code>, this code works well. But it displays a notification, that I don't want, because I use this code for lazy-loading images in a <code>ListView</code>.</p>
  
  <p>I understand, this notification can be hidden with</p>
  
  <pre><code>downloadRequest.setNotificationVisibility(DownloadManager.Request.VISIBILITY_HIDDEN);
  </code></pre>
  
  <p>But in that case, my application crashes with:</p>
  
  <blockquote>
    <p>02-19 02:24:24.055: E/AndroidRuntime(2572):
    java.lang.SecurityException: Invalid value for visibility: 2 02-19
    02:24:24.055: E/AndroidRuntime(2572):     at
    android.os.Parcel.readException(Parcel.java:1327) 02-19 02:24:24.055:
    E/AndroidRuntime(2572):   at
    android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:181)
    02-19 02:24:24.055: E/AndroidRuntime(2572):   at
    android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
    02-19 02:24:24.055: E/AndroidRuntime(2572):   at
    android.content.ContentProviderProxy.insert(ContentProviderNative.java:415)
    02-19 02:24:24.055: E/AndroidRuntime(2572):   at
    android.content.ContentResolver.insert(ContentResolver.java:730) 02-19
    02:24:24.055: E/AndroidRuntime(2572):     at
    android.app.DownloadManager.enqueue(DownloadManager.java:885) 02-19
    02:24:24.055: E/AndroidRuntime(2572):     at
    MyService.getImage(MyService.java:112)</p>
  </blockquote>
  
  <p>Whats' wrong with <code>setNotificationVisibility</code>? How can I had the notification?</p>