问题
Does anyone help me about android emulator? I am trying to push a .mpg file into the sd card but I can not see the file when I run my application. Does emulator support .mpg files?
Secondly, I want to upload a video to asp.net server but I can not send the file and I get the out of memory error in my code. I am using multi part upload. On the other hand this code is able to upload a jpeg file to the server and it was successful.
回答1:
to upload a file to emulator instance
- create a new emulator using AVD. make sure that you have chosen 'SD Card support' for this. refer image below
- Start the AVD and wait till the emulator loads fully
- Now in eclipse IDE, select
DDMSperspective, byWindow -> Open Perspective -> DDMS - Select
File Explorertab to get the directory tree of your device. - Select
mnt -> sdcardfolder. This is your SD card - Now use the 'Push file onto the device' button on top to push a file to the emulator instance.
- The file is in the SD card of your emulator
来源:https://stackoverflow.com/questions/11134506/emulator-and-uploading-video