Writing data to file

Discussion in 'Android Hacks and Help' started by chris24300, Feb 10, 2010.

  1. chris24300

    chris24300 New Member

    Joined:
    Jan 7, 2010
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    I'm looking to log various sensor data (light, accel, temp, etc.) over a period of time (few minutes) to a text file then to be transferred to a desktop for analysis. I'm new to working with the droid so I'm still learning how everything works. My friend has already written the code to get data from sensors, he is not at the same location as me so I need to write the file portion. Any guidance or tutorials are greatly appreciated!

    Thanks,
    Chris
     
  2. chris24300

    chris24300 New Member

    Joined:
    Jan 7, 2010
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    What is the directory structure? I think my io problem was no directory was specified thinking it would be in the same location as my application... how can i specify the 'home' directory?