简体   繁体   中英

Send/Receive SMS in Android apps (as default SMS app)

As of Android 4.3, how do we send and receive SMS (and less importantly, MMS) messages?

I know there are samples all over this site and the web. But I am wanting documentation for it, and everywhere I look on the Android site says "Deprecated since API Level 4". Is there anything SMS-related that isn't deprecated?

SMSManager is deprecated and so is SMSMessage and others.

From android documentation of SmsManager

Manages SMS operations such as sending data, text, and pdu SMS messages. Get this object by calling the static method getDefault().

For information about how to behave as the default SMS app on Android 4.4 (API level 19) and higher, see Telephony.

You should see Telephony for version 4.4

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM