How to upload a file to a folder with files to upload

I want to download a file using android to my SD card and then watch it from my Android emulator. I can upload the file to

/mnt/sdcard/myfile.jpg

I want to see this file from my Android emulator.

Or I can upload it to the download folder.

+4
source share
3 answers

Please check this example to download and save the file: http://www.androidsnippets.com/download-an-http-file-to-sdcard-with-progress-notification . Once you have downloaded the file, you can see it in the DDMS perspective, in the file explorer view. There will be a folder "sdcard". Also, make sure you create the emulator's SD card size when creating the emulator.

+4
source

From what I understand, you need a file browser on your emulator.

Here is found a random File Browser that I found (google search).

Download apk and install it using adb:

 adb install MAndFileBrowser.apk 
+2
source

U can save the downloaded file to a specific folder, also creating a folder in external storage. And when the download is completed, you can display it (for example, if you upload the image u to the image)

0
source

Source: https://habr.com/ru/post/1388725/


All Articles