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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to