emulator and uploading video

隐身守侯 提交于 2019-12-14 01:51:34

问题


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 DDMS perspective, by Window -> Open Perspective -> DDMS
  • Select File Explorer tab to get the directory tree of your device.
  • Select mnt -> sdcard folder. 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

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