Original code and its working saving the data to the SD Card
// Writing data to internal storage btnSaveData.setOnClickListener(new View.OnClickListener() {
Constructor FileOutputStream( File file ) always overwrites file. If you want to append to file you have to use more generic constructor FileOutputStream( File file, boolean append ). If you set parameter 'append' to true file is not overwritten.