Method of realizing telephone monitoring by using service in Android programming
This paper describes the method of using service to realize telephone monitoring in Android programming. Share with you for your reference, as follows:
1. Start the simulator and deploy the application 2. Use the simulator controller to send a short message to start the service (check the log output to determine whether it is successful) 3. Make a call to the simulator and answer it. After hanging up, use file management to check the 3gp file generated in the corresponding cache directory or sdcard, and copy it to the PC to play for verification.
List settings (one receiver, one service, several permissions)
Phone listener service class: phonelistenerservice
Start the service by starting the broadcast (in the experimental environment, short message broadcast can be used for convenience)
Startup completion broadcast action
I hope this article will help you in Android programming.