简体   繁体   English

如何将文件下载到我的下载文件夹android

[英]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.

相关问题 如何将文件下载到Android中的内部下载文件夹中 - How to download file into internal downloads folder in Android 如何停止下载管理器下载我的下载文件中已经存在的文件? - How do i stop the download manager downloads a file that already exists in my downloads? 如何访问Android设备中的downloads / data文件夹? - How can I access downloads/data folder in Android device? 第三方应用程序可以在“下载”文件夹中找到生成的文本文件,但未显示在Android的默认“下载”应用程序中 - Generated text file can be found by third party app in Download folder but not shown in Android's default Downloads app 使用phonegap下载文件到下载文件夹ios / android - Download file to downloads folder ios/android using phonegap 如何使用Phonegap将文件下载到Android的下载文件夹? - How do you download a file to Android's Downloads folder using Phonegap? 如何将文件下载到本地下载文件夹? - How do i download files to the local downloads folder? 为什么我的Android不读取“下载”文件夹中的该文件? - Why isn't my android reading this file in Downloads folder? 如何从android的app文件夹中检索文件? - How can I retrieve a file from my app folder in android? 如何在我的下载管理器应用程序中获取其他应用程序下载的状态? - How can I get status of other Apps downloads in my Download Manager App?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM