[英]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. 我想使用android下载一个文件到我的SD卡,然后从我的android模拟器中看到它。 I can download a file to
我可以下载一个文件
/mnt/sdcard/myfile.jpg
I want to see this file from my android emulator. 我想从我的android模拟器中看到这个文件。
Or I can download it to my downloads folder. 或者我可以将其下载到我的下载文件夹中。
Please check this example for downloading and saving the file: http://www.androidsnippets.com/download-an-http-file-to-sdcard-with-progress-notification . 请查看此示例以下载并保存文件: 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.
下载文件后,您可以在DDMS透视图的“文件浏览器”视图中看到它。 There will be an "sdcard" folder.
将有一个“sdcard”文件夹。 Please also be sure that you set the size of the emulator's SD card when you created the emulator.
您还要确保在创建模拟器时设置模拟器SD卡的大小。
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 : 下载apk并使用adb安装它:
adb install MAndFileBrowser.apk
您也可以通过在外部存储中创建文件夹来将下载的文件保存到特定文件夹。当下载完成后,您可以显示它(即如果您下载的图像可以在imageview中显示)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.