title: How to Enable Android Download Manager
body: <p>I'm using Android Download Manager to download list of files. Lately I came across a crash report saying </p>
  
  <p><code>Unknown java.lang.IllegalArgumentException: Unknown URL content://downloads/my_downloads</code></p>
  
  <p>Then later, I figured it out that the reason is because user disabled Android Download Manager. I check if the Download Manager is disabled by checking it's package name with the code below.</p>
  
  <pre><code>int state = this.getPackageManager().getApplicationEnabledSetting("com.android.providers.downloads");
  </code></pre>
  
  <p>And now, I need to find a way to enable the Download Manager if it is disabled. I tried setting it's enable state with the permission in Manifest but I keep getting Security Exception.</p>
  
  <pre><code>this.getPackageManager().setApplicationEnabledSetting("com.android.providers.downloads", PackageManager.COMPONENT_ENABLED_STATE_DEFAULT, 0);
  
  &lt;uses-permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE"/&gt;
  </code></pre>
  
  <p>So I thought it might not be reachable because of it is a system app. (Google Play App does it).</p>
  
  <p>Is there any way to redirect the user to the Download Manager Application Info view ? to let the user enables it ? If there is no way to enable it on run time programmatically.</p>