Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
617 views
in Technique[技术] by (71.8m points)

audio - Is it possible to record phone calls via an Android App?

I'm a developer looking to create an Android application to record phone calls. This spawned out of my own personal need to record phone calls for my own purposes and for my records.

Is it possible to do this? Is it possible to get access to the microphone and what's coming through the speaker?

I'm kind of new to Android development, so bear with me :) I assume that I could probably record into WAV and then at the end of the call, transcode it into MP3 using LAME or something. This may kill the battery, but this seems like a good project for me to get used to Android with. I'm looking to use Android 2.X.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The short answer is no. The telephony stack is fairly restrictive to application developers, partly for security reasons.

You might be to write your own "Phone app", perhaps based off the default one, and include the necessary hooks to intercept the audio streams.

However, this would be an extremely difficult project if you are new to Android development. I would suggest trying out some other projects first, before looking into the telephony stuff.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...