0
点赞
收藏
分享

微信扫一扫

android 分享功能

天蓝Sea 2023-03-27 阅读 70


Intent intent=new Intent(Intent.ACTION_SEND);
      
      intent.setType("text/plain");
      intent.putExtra(Intent.EXTRA_SUBJECT, “分享”);
      intent.putExtra(Intent.EXTRA_TEXT, "I would like to share this with you...");
      startActivity(Intent.createChooser(intent, getTitle()));

举报

相关推荐

0 条评论