Android程序设计教程丁山电子课件第10章语音及短信服务(749KB).pptVIP

  • 2
  • 0
  • 约1.79万字
  • 约 39页
  • 2018-04-01 发布于未知
  • 举报

Android程序设计教程丁山电子课件第10章语音及短信服务(749KB).ppt

10.4.2 SMS消息的发送与跟踪 在SMSManager中除了采用典型的sendTextMessage方法外,还可以采用以下两种方式: sendDataMessage方法将Data格式的SMS传送到特定程序的Port。采用函数sendDataMessage (String destinationAddress, String scAddress, short destinationPort, byte[] data, PendingIntentsentIntent, PendingIntentdeliveryIntent) sendMultipartTextMessage方法发送超长文字短信,参数与sendTextMessage类似,无非是短信内容变成了用divideMessage拆成的ArrayList,两个广播同sendDataMessage方法。 * 10.4.2 SMS消息的发送与跟踪 sendDataMessage方法的典型程序为 * 1 public class SmsReceiver extends BroadcastReceiver { 2 @Override 3 public void onReceive(Context context, Intent intent) { 4 Bundle bundle = intent.getExt

文档评论(0)

1亿VIP精品文档

相关文档