How to Store files on Emulator?

旧街凉风 提交于 2019-12-18 08:09:11

问题


Is there any possibility for storing files in Android Emulator by default and without using any commands?


回答1:


use adb shell method. Give this command

adb push filename.extension /your destination

Hope this helpful to you.




回答2:


you can see PUSH & PULL buttom in red cirle of below image..

using PULL you can pull file from device and using PUSH you can push file onto the device




回答3:


adb push filename.extension /your storing location/

First root your adb from Command Prompt. And, give this command. This can be used to push the files on to emulator's storage area.




回答4:


You can push a file onto the emulator's SD card. To achieve this open the DDMS, select the emulator inside the list of devices, then select Device in the main menu, select File Explorer. In the opened window select sdcard in the dropdown list and click the icon Push file onto Device. Then you have to just select the file to push. Hope this helps.




回答5:


Run project >> goto DDMS>> Click File Explorer >> data >> data >> "your package" >> click on package then >> push >> select file >> ok >>restart emulator >> show in emulator

You can show here ::




回答6:


If you have problems saving a file to the sdcard folder e.g. you have only read rights then try to set the size of the emulator SD Card. In eclipse: Folder Window -> AVD Manager -> TestDevice (your emulator) -> Edit... ->SD Card ->Size



来源:https://stackoverflow.com/questions/7358023/how-to-store-files-on-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!