首页
学习
活动
专区
圈层
工具
发布
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    Android开发笔记(五十五)手机设备基本操作

    intent.setData(uri); startActivity(intent); 发短信 发短信有两种方式,分别是手工发送和自动发送,手工发送是调用系统的短消息应用,自动发送则是调用SmsManager...使用SmsManager类有三个注意点: 1、因手机短信有长度限制,故需对过长的短信内容进行拆分,具体是调用SmsManager类的divideMessage方法; 2、SmsManager同时支持短短信和长短信两种方式...deliverPI = PendingIntent.getBroadcast(this, 1, deliverIntent, PendingIntent.FLAG_UPDATE_CURRENT); SmsManager...smsManager = SmsManager.getDefault(); // 拆分短信内容(手机短信长度限制) ArrayList divideContents = smsManager.divideMessage...: case SmsManager.RESULT_ERROR_RADIO_OFF: case SmsManager.RESULT_ERROR_NULL_PDU: tv_send.setText

    1.5K20
    领券