1. Download our Official Android App: Forums for Android!

reading an xml file from sd card

Discussion in 'Introductions' started by tituskamau, Jun 17, 2011.

  1. tituskamau

    tituskamau Lurker
    Thread Starter
    Rank:
    None
    Points:
    25
    Posts:
    1
    Joined:
    Jun 17, 2011

    Jun 17, 2011
    1
    0
    25
    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:
     

    Advertisement

  2. lunatic59

    lunatic59 Moderati ergo sum
    Moderator
    Rank:
     #2
    Points:
    4,238
    Posts:
    36,610
    Joined:
    Jun 12, 2010

    Jun 12, 2010
    36,610
    34,670
    4,238
    Male
    IT
    Pennsylvania
    Welcome to Android Forums!

    It sounds like you are working with the Android SDK, Perhaps one of the developers here will be able to answer your question over in the Developer's section.
     
  3. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #8
    Points:
    2,138
    Posts:
    22,290
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,290
    23,628
    2,138
    Male
    space alien ;)
    Indy
    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 (Text):
    1. cd /sdcard
    2. ls -a -l testfile.xml
    3. cat testfile.xml
    Hope that helps.

    Cheers!
     

Share This Page

Loading...