- Telephonymanager Class: The service class that manages the phone call status, the telephone network information, gets the method as follows:
telephonymanager manager= (Telephonymanager) getsystemservice (Context.telephony_service)
Common methods: Listen (Phonestatelistener listener,int events) to monitor call status
- Smsmanager: Short Message service class, common method:
Sendtextmessage (string,string,string,pendinginent send,pendingintent delivery), of which the last two pendingintent functions as follows:
- Send: Used to monitor whether the SMS was sent successfully
- Delivery: Used to listen to whether the recipient successfully received the text message, but it relies on deliveryreports, note that delivery can trigger the broadcast depends on multiple conditions:
- Whether the recipient supports delivery reports
- Does the SMS gateway support returning delivery report
Android Common system Services