android - Download Manager stops when activity is destroyed -


request = new downloadmanager.request(                     uri.parse(url));              request.setnotificationvisibility(downloadmanager.request.visibility_visible_notify_completed);             request.allowscanningbymediascanner();             request.setmimetype("audio/mpeg");             request.setdestinationinexternalpublicdir(environment.directory_music,title);             downloadmanager dm = (downloadmanager) getactivity().getsystemservice(context.download_service);             dm.enqueue(request) 

its downloading fine when activity gets killed download qued in download manager app. pls how can download if activity destroyed ...


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -