问题
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();
}
来源:https://stackoverflow.com/questions/32694903/recording-the-tapped-button-with-the-audio