I can record audio on sd card but, ı want to list records on a list view; my code has shown below
private void beginRecording() throws IllegalStateException, IOException {
ditchMediaRecorder();
File outFile=new File(OUTPUT_FILE);
if(outFile.exists())
outFile.delete();
recorder=new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile(OUTPUT_FILE);
recorder.prepare();
recorder.start();
0 comments:
Post a Comment