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

Apps store text file in sd card

Discussion in 'Android Development' started by bbjdev, May 5, 2010.

  1. bbjdev

    bbjdev Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    May 5, 2010

    May 5, 2010
    1
    0
    5
    Hi,

    I need input about how to store a text file in the sd card. My idea is to write some contents on a text file and allow user to select a path to store the file in the device. Please let me know what are the steps I need to follow the same. I am able to write the contents on a file and the file is now under data in eclipse(DDMS).

    Thanks in advance.
    BBJDev
     

    Advertisement

  2. tp_technologies

    Rank:
    None
    Points:
    16
    Posts:
    65
    Joined:
    Apr 26, 2010

    Apr 26, 2010
    65
    5
    16
    Canada
    I would suggest checking out File objects in Java. By using a File object with the desired path and a PrintWriter you could write to any location.
     

Share This Page

Loading...