如何调用系统录音机录音并保存至指定文件? 可能系统的录音不解析你这个uri 只是接受这个intent 然后开始录音 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 MediaRecorder mRecorder; private void startRecording() { mRecorder = new MediaRecorder(); mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); mRecorder.setOutputFile(getOutFile().getPath()); mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); try { mRecorder.prepare(); } catch (IOException e) { } mRecorder.start(); } 这个展开隐藏的效果是怎么做出来的? android中实现百度地图,在线等 转行android游戏开发如何? 如何修改联系人信息中的相同项? cocos2d-x 的scrollView的一些问题请教 请教高人,能说下activity四种启动模式的应用场景吗 安卓自定义scrollView中的onclick事件和滑动时间冲突. android工程如何打开office文档和pdf 如何判断用户的操作手势是z型手势 华住会APP在收集个人隐私吗???? 请教大神,LayoutInflater和View.linflate出来的Layout不能操作 带经纬度的数据,用什么数据库好
private void startRecording() {
mRecorder = new MediaRecorder();
mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
mRecorder.setOutputFile(getOutFile().getPath());
mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
try {
mRecorder.prepare();
} catch (IOException e) {
}
mRecorder.start();
}