Pritom
Pritom

Reputation: 1333

How can I download a file to my downloads folder android

I want to download a file using android to my sdcard and then see it from my android emulator. I can download a file to

/mnt/sdcard/myfile.jpg

I want to see this file from my android emulator.

Or I can download it to my downloads folder.

Upvotes: 4

Views: 14921

Answers (3)

Rick
Rick

Reputation: 1134

From what I understood what you need is a File Browser on your emulator .

Here's a random File Browser I found ( Google search ) .

Download the apk and install it with adb :

adb install MAndFileBrowser.apk

Upvotes: 2

Richa
Richa

Reputation: 3193

U can save downloaded file to specific folder also by creating folder in external Storage.and when the download gets complete u can display it(i.e if u r downloading image u can show in imageview)

Upvotes: 0

strongmayer
strongmayer

Reputation: 488

Please check this example for downloading and saving the file: http://www.androidsnippets.com/download-an-http-file-to-sdcard-with-progress-notification. After you downloaded the file you can see it in the DDMS perspective, at the "file explorer" view. There will be an "sdcard" folder. Please also be sure that you set the size of the emulator's SD card when you created the emulator.

Upvotes: 4

Related Questions