Working on an application. I have a text file created filled with data and am trying to get it onto the emulator to access it from the device. Anyone have any tips or know how to do so. Thanks in advance.
Working on an application. I have a text file created filled with data and am trying to get it onto the emulator to access it from the device. Anyone have any tips or know how to do so. Thanks in advance.
Hello,
Welcome to our Microsoft Q&A platform!
First of all, please just only one android emulator. Then open Android Adb Command Prompt like following screenshot.

For example, I put a file to Desktop, then I want to copy this text file to sdcard, I used following command to execute it
adb push C:\Users\xxxxusername\Desktop\Topic.txt /mnt/sdcard/myfile.txt
Here is running screenshot.

Best Regards,
Leon Lu
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
@AliBilalStudent-0330 Did you try to use above ADB way to copy file to your android emulator? And you can use DDMS way to achieve it, but you have to root your android device.
5 people are following this question.