DownloadManager.Request.setNotificationVisibility fails with SecurityException: invalid value for visibility: 2

You need the following permission in the manifest as per documentation:

<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />

Note
Most of the manifest permissions will be autocompleted by Android Studio, but this will not be auto-completed.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)