我们尝试记录我们的应用程序的呼叫,除了小米Note 3和其他MI设备之外,所有其他设备的工作正常。是否有任何方法或设置需要更改以便在小米类型设备
中记录代码以下正确运行recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);
recorder.setOutputFormat(MediaRecorder.OutputFormat.AMR_NB);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile(fname);
try {
recorder.prepare();
recorder.start();
recording=true;
ts=getCurrentTS();
editor.putString("mdialerRecording", "true");editor.commit();
Toast.makeText(getApplicationContext(), "Recorder_Initialized1111 catch", Toast.LENGTH_LONG).show();
} catch (IllegalStateException e1) {
e1.printStackTrace();
File recfile = new File(fname);if(recfile.exists())recfile.delete();
} catch (IOException e1) {
e1.printStackTrace();
}