Hi,

Suggest you check & create the directory if necessary, else the user
can remove it when your not looking.

Regards

On Jul 26, 8:58 am, Dan Raaka <[email protected]> wrote:
> This peice of code fails mostly because the "Download" directory is
> missing on the mounted /sdcard.
> Who is responsible for creating the directories .. my app or the
> DownloadManager ?
>
>     public void onDownloader(View view) {
>         dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);
>         Request request = new 
> Request(Uri.parse("http://www.imagebookers.com/gallery/d/2577-1/si0ux_-_debian_gold_wallpaper.png";));
>
> request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS," 
> example.png");
>         enqueue = dm.enqueue(request);
>     }
>
> -Dan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to