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

Apps store text file in sd card

bbjdev

Lurker
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
 
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.
 
Back
Top Bottom