小编jor*_*rts的帖子

以编程方式发送彩信

我在这里查看了代码:How to send image via MMS in Android?

在这里:无法使用 SmsManager 发送彩信

我也从其他地方进行了一些研究,但到目前为止,我对如何在不使用意图的情况下向人们发送彩信感到非常困惑。

如果我转到此处的 Android 文档,在 Telephony 中有 SMSManager 类。在 API 级别 21 中,他们添加了一个名为“sendMultimediaMessage()”的函数,用于发送 MMS 消息。

void sendMultimediaMessage (Context context, 
                Uri contentUri, 
                String locationUrl, 
                Bundle configOverrides, 
                PendingIntent sentIntent)

Parameters
context Context: application context
contentUri  Uri: the content Uri from which the message pdu will be read
locationUrl String: the optional location url where message should be sent to
configOverrides Bundle: the carrier-specific messaging configuration values to override …
Run Code Online (Sandbox Code Playgroud)

android telephony mms smsmanager android-mms

5
推荐指数
0
解决办法
826
查看次数

标签 统计

android ×1

android-mms ×1

mms ×1

smsmanager ×1

telephony ×1