I am working on this sound recorder activity. I added a restart button to an activity to start recording again, but the problem with the code is it overwrites the new record file over the last file. I want to edit this part of the code.
outputFile = Environment.getExternalStorageDirectory().
getAbsolutePath() + "/Recording" + date + time + ".3gpp";
The problem is, I am a noob at coding and I don't know how to explain date and time and I don't know if it works or not.