android发送短信
来源:互联网 发布:网络主播感谢粉丝的话 编辑:程序博客网 时间:2024/05/17 07:58
1.在androidmanifest.xml中添加权限:
<uses-permission android:name="android.permission.SEND_SMS"/>
2.短信发送函数:
private void sendSMS(String phoneNumber, String message) {
PendingIntent pi = PendingIntent.getActivity(this, 0,
new Intent(this, TinySMS.class), 0);
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(phoneNumber, null, message, pi, null);
}
- android 中发送短信
- android中发送短信
- android发送短信
- Android 发送短信
- Android自动发送短信
- Android发送短信
- android 发送短信sms
- android 发送短信
- android发送短信
- Android短信发送器
- android 之短信发送
- Android自动发送短信
- android短信发送
- Android发送短信
- android 发送短信问题
- android 短信发送程序
- Android发送短信
- Android短信发送程序
- Qt 程序在 windows 下的发布
- android拨打电话
- scanf函数
- 终于狠下心来买了本书
- ExtJS中get、getDom、getCmp、getBody、getDoc使用
- android发送短信
- malloc与new
- windows下完美的"免费"QT开发环境: QtCreator + VC2008Express
- Erlang—并发编程
- 共享内存实践总结
- 越瑟夫问题
- 危险的NSAutoreleasePool
- 收集的android开发文章教程等资源
- [新闻] 微软五月份安全补丁提前通知