Introduction - If you have any usage issues, please Google them yourself
This example is a source code based on the example of Android call source, you can achieve a simple call recording, the following is a simple implementation steps.
1 first build a new SystemService inheritance Service
2 to get the TelephoneManager instance, call its listen method.
3 phone there are many kinds of state, in a different state to write your own event (the code behind the notes are very detailed)
4 to be a tape recorder, when the call status, start hiring, call state at the end of the audio file in the background to upload to the server, the code is very detailed.