zoukankan      html  css  js  c++  java
  • Android进阶篇调用系统界面

    1.调用系统发短信界面:

                Intent intent = new Intent();
                intent.setAction(Intent.ACTION_SENDTO);
                intent.setData(Uri.parse("smsto:xxxxxxxxx"));//设置收件人号码
                intent.putExtra("sms_body", "reset");//设置短信内容
                startActivity(intent);

    2.调用系统的分享功能:

                String content = "xxxxxxxxxxx";
                Intent intentShare=new Intent(Intent.ACTION_SEND);   
                intentShare.setType("image/*");   
                intentShare.putExtra(Intent.EXTRA_SUBJECT, "分享");   
                intentShare.putExtra(Intent.EXTRA_TEXT, content);    
                intentShare.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);   
                startActivity(Intent.createChooser(intentShare, "分享"));
  • 相关阅读:
    matrix
    meizi
    公文流转系统
    10.21连接数据库进行添加
    9.27
    9.23课堂总结
    信息管理java
    大道至简读后感
    第二周
    7.7第一周
  • 原文地址:https://www.cnblogs.com/gongcb/p/2888811.html
Copyright © 2011-2022 走看看