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 Andr开发者_运维技巧oid 2.X.
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.
精彩评论