jenson138
1     public static void CopyToClipboard(Context context,String text){
2     ClipboardManager clip = (ClipboardManager)context.getSystemService(Context.CLIPBOARD_SERVICE);
3     //clip.getText(); // 粘贴
4     clip.setText(text); // 复制    
5     }

 

分类:

技术点:

相关文章:

  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-12-19
  • 2021-12-19
猜你喜欢
  • 2021-10-29
  • 2022-12-23
  • 2022-01-24
  • 2022-12-23
  • 2022-02-01
  • 2021-12-19
  • 2021-12-19
相关资源
相似解决方案