I am saving a log to a .txt file on the sdcard but once there is two lines saved, it overwrites it and starts over?
Here is my code:
public static Strin
Try changing
PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(logFile, true)));
to
FileWriter fileWritter = new FileWriter(logFile,true); //true = append file BufferedWriter bufferWritter = new BufferedWriter(fileWritter); bufferWritter.write(YourData); bufferWritter.close();