[置顶] 调用Android发短信接口Intent.ACTION_SENDTO
2013-12-21 03:59
337 查看
调用Android发短信接口Intent.ACTION_SENDTO
public void welcome_register(View v) { // 测试smsto Uri sms_uri= Uri.parse("smsto:13517596490");//设置号码 Intent sms_intent = new Intent(Intent.ACTION_SENDTO,sms_uri);//调用发短信Action sms_intent.putExtra("sms_body", "HelloWorld");//用Intent设置短信内容 startActivity(sms_intent); // String qqRegiter = this.getString(R.string.QQRegiter);// 获取资源中的字符串 // if (qqRegiter != null && !(qqRegiter.equals(""))) { // Uri uri = Uri.parse(qqRegiter);// 设置一个统一资源定位符 // Intent intent = new Intent(Intent.ACTION_VIEW, uri);// 展示一个新的View // startActivity(intent); // } }
相关文章推荐
- android 通过Intent action 调用系统功能
- Android 通过Intent调用系统功能和Action动作和服务广播【大全】
- android开发(26) 和其他应用交换数据方式一,使用intent指定自定义action调用其他程序里的activity,并获得其返回的结果
- android 通过Intent action 跳转到系统页面,调用系统功能以及action动...
- android 通过Intent action 跳转到系统页面,调用系统功能以及action动...
- android开发(26) 和其他应用交换数据方式一,使用intent指定自定义action调用其他程序里的activity,并获得其返回的结果
- Android应用开发笔记(1) 调用打电话和发短信、收短信接口、发Email
- Android应用开发笔记(1):调用打电话和发短信、收短信接口、发Email
- Hello Android - 调用打电话和发短信及intent一些其他用法
- Android应用开发笔记(1) 调用打电话和发短信、收短信接口、发Email
- Android:调用打电话和发短信及intent一些其他用法
- 【Android】intent action 跳转到系统使用,调用系统功能
- Android应用开发笔记(1):调用打电话和发短信、收短信接口、发Email (Call, Dial, SMSManager, Broadcast, Email)
- android应用程序跳转到系统的各个设置页面和通过Intent action 跳转到系统页面,调用系统功能以及action
- android 通过Intent action 跳转到系统页面,调用系统功能以及action动作
- Android系统Intent,系统Action调用大全
- android教程之intent的action属性使用示例(intent发短信)
- Android 通过Intent调用系统功能和Action动作和服务广播【大全】
- android 通过Intent action 跳转到系统页面,调用系统功能以及action动作
- MiUi4.5.30 调用系统相机并且剪裁出现:No Activity found to handle Intent { act=com.android.camera.action.CROP