Hi everyone i am a bit stuck with **DownloadManager** trying to add a download functionality to my sample app.
the problem is that when i execute the code to download a file nothing happen and after about 15 min a notification show up ( unsuccessful download ).

here is the code i used : 

```
downloadManager  = (DownloadManager)getSystemService(Context.DOWNLOAD_SERVICE);
Uri uri = Uri.parse("http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4");
DownloadManager.Request request = new DownloadManager.Request(uri);
request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
request.setTitle("Sample video name.mp4");
Long reference = downloadManager.enqueue(request);

```

Any help will be appreciated.