Android中发送短信和彩信
来源:互联网 发布:phpcms栏目绑定域名 编辑:程序博客网 时间:2024/05/02 04:58
发送短信:
String body="this is sms demo";Intent mmsintent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts("smsto", number, null));mmsintent.putExtra(Messaging.KEY_ACTION_SENDTO_MESSAGE_BODY, body);mmsintent.putExtra(Messaging.KEY_ACTION_SENDTO_COMPOSE_MODE, true);mmsintent.putExtra(Messaging.KEY_ACTION_SENDTO_EXIT_ON_SENT, true);startActivity(mmsintent);
发送彩信:
StringBuilder sb = new StringBuilder();sb.append("file://");sb.append(fd.getAbsoluteFile());Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts("mmsto", number, null));// Below extra datas are all optional.intent.putExtra(Messaging.KEY_ACTION_SENDTO_MESSAGE_SUBJECT, subject);intent.putExtra(Messaging.KEY_ACTION_SENDTO_MESSAGE_BODY, body);intent.putExtra(Messaging.KEY_ACTION_SENDTO_CONTENT_URI, sb.toString());intent.putExtra(Messaging.KEY_ACTION_SENDTO_COMPOSE_MODE, composeMode);intent.putExtra(Messaging.KEY_ACTION_SENDTO_EXIT_ON_SENT, exitOnSent);startActivity(intent);
- Android中发送短信和彩信
- 在Android中发送短信和彩信
- Android中发送短信和彩信
- 在Android中发送短信和彩信,监听短信并显示
- 在Android中发送短信和彩信,监听短信并显示
- android 发送短信,彩信,邮件代码
- android短信和彩信探秘threads
- Android短彩信源码解析-短信发送流程(一)
- Android短彩信源码解析-短信发送流程(二)
- Android入门-MMS-短信/彩信发送流程+代码分析
- Android短彩信源码解析-短信发送流程(三)
- android短彩信源码解析-短信发送流程
- Opera书签在短信或者彩信文本中发送
- 使用NowSMS Gateway来接收发送短信和彩信
- 设计一个短信和彩信自动交替发送的APK
- Android中发送和接收短信
- Android 中发送和接收短信
- Android中发送和接收短信
- 内核空间和用户空间,内核态和用户态,进程上下文和中断上下文
- html元素在IE和FF浏览器中默认的css样式[转]
- ubuntu下搭建OPEN GL开发环境
- 推荐一个账号安全性检查网址
- C++builder项目记录【互斥体】【桌面快捷方式】【form禁止拉伸与释放】【屏蔽WebBrowser右击】最简单实用
- Android中发送短信和彩信
- agenda
- myeclipse设了断点却调试不进去
- 快毕业了,想远走
- 技术回往:MSMQ
- 追随内心——又一本乔布斯的书
- IOS开发之—绘图
- WdatePicker 屏蔽 onchange 的解决方法
- 关于xcode里资源文件夹管理