如何在Android中记录通话? [英] How to record calls in Android?

查看:102
本文介绍了如何在Android中记录通话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是Android世界的新手.我必须使用我的应用程序在android手机中记录通话.我不知道在android中的通话录音.请帮助我提出与此相关的任何想法.

谢谢....

Hi,

I am new in the world of Android. I have to record calls in android phones using my application. I have no idea about call recording in android. Please help me with any ideas connecting with this.

Thank you....

推荐答案

您需要查看android.media

Android.media [
You need to look at android.media

Android.media[^]

android.media gives you all the option to record from.

Skeleton code

    final MediaRecorder Callrecorder = new MediaRecorder();

    Callrecorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);
    Callrecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
    Callrecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
    Callrecorder.setOutputFile(recordPath);
    Callrecorder.prepare();
    Callrecorder.start();
... do something else
    Callrecorder.stop();



这应该对您的想法有所帮助.

/Darren



This should help you with the idea.

/Darren


这篇关于如何在Android中记录通话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆