I am creating an instrument. I want that the record button can record the audio and what was tapped.
But when I tap the record button, it only record the audio. I want to record the audio and what was tapped by the user.
Here it my code for record.
public void startRecord() throws Exception { record = new MediaRecorder(); record.setAudioSource(MediaRecorder.AudioSource.MIC); record.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); record.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); record.setOutputFile(FILE); record.prepare(); record.start(); }