Skip to content Skip to sidebar Skip to footer

How To Make Android Emulator Access My Pc Files?

can anyone please tell me how can I make android emulator access the media files of my PC.I dont know how to make the connection between the two.Please help me. Thanks in advance.

Solution 1:

You can check this post for information about pushing files from you PC to the Android Emulator:

how to import files into the sdcard on emulator in android?

If you want to access them in runtime and not push the files there you have to have a public IP on the internet in which you can access and expose the files on HTTP with something like Apache Tomcat or FTP and then access that from the emulator.

You can also access it locally without exposing it to the whole internet, by accessing from the Android emulator to the "localhost" IP. You'll have to search which IP this is.

Solution 2:

You can use the adb command which comes in the tools dire of the SDK:

adb shell

It will give you a command line prompt where you can browse and access the filesystem. Or you can extract the files you want:

adb pull /sdcard/the_file_you_want.txt

Also, if you use eclipse with the ADT, there's a view to browse the file system

(Window->Show View->Other... and choose Android->File Explorer)

Post a Comment for "How To Make Android Emulator Access My Pc Files?"