• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

reading an xml file from sd card

Hi,i pushed an xml file into the emulators sd card but i do not have a file to parse it,could anyone with the code please help? thanks.:rolleyes:

Welcome to the AndroidForums, tituskamau!

Been a while since I've played with the SDK's emulator (its just too slow...I prefer pushing things directly to my phone). Here's what I would do:

1. Launch the emulator
2. After it (finally) finishes booting/starting-up, press the app drawer sash at the bottom of the screen
3. Select "Dev Tools"
4. Scroll down to the "Terminal Emulator" app
5. In the Terminal Emualator, you'll be presented with a mini Linux window's shell prompt, navigate to the directory containing your .xml file and use view it with the cat command, etc.:

Code:
cd /sdcard
ls -a -l testfile.xml
cat testfile.xml

Hope that helps.

Cheers!
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones