Saturday, December 11, 2010

How to Add Files to SD card of Android Virtual Device (AVD) Emulator

Copying Files From/To Device Emulator:
         Files can be copied from/to android device emulator in two ways. One is from Eclipse and the other is from the command prompt. I prefer using Eclipse, since it is easy and provides a good UI to copy files. 


1) In Eclipse

  • Go to Debug mode when the Emulator is running ( Debug button is available at the top right corner of the Eclipse Window )
  • Select Window --> Show View --> Other --> Android --> File Explorer


File Explorer View in Eclipse
Pull Push
  • Now Select sdcard and copy required files by pressing Push Button
  • Or Select the required file from SD Card and press Pull Button to save them on local system
2) In Command Prompt
             To copy files using command prompt, follow the guide given by Google
             http://developer.android.com/guide/developing/tools/adb.html#copyfiles

    3 comments:

    1. [2013-03-23 12:12:13 - DDMS] DDMS files not found: C:\Users\Tariff Olabi\Desktop\adt-bundle-windows\sdk\platform-tools\adb.exe C:\Users\Tariff Olabi\Desktop\adt-bundle-windows\sdk\tools\hprof-conv.exe C:\Users\Tariff Olabi\Desktop\adt-bundle-windows\sdk\tools\traceview.bat


      ؟؟؟؟؟؟

      ReplyDelete
    2. after that i try more and get


      [2013-03-23 12:37:45 - ddms] transfer error: Invalid argument
      [2013-03-23 12:37:45] Failed to push selection: Invalid argument

      ReplyDelete
    3. the file explorer is empty. why is that? where did i go wrong?

      ReplyDelete