从 Android 4.3 开始,我们如何发送和接收短信(以及不太重要的彩信)消息?
我知道这个网站和网络上到处都有示例。但我想要它的文档,而且我在 Android 网站上看到的所有地方都写着“自 API 级别 4 起已弃用”。是否有任何与 SMS 相关的内容尚未被弃用?
SMSManager 已弃用,SMSMessage 等也已弃用。
最佳答案
来自SmsManager的android文档
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.
您应该看到Telephony对于 4.4 版本
关于java - 在 Android 应用程序中发送/接收短信(作为默认短信应用程序),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21494634/