How to attach a Bitmap when launching ACTION_SEND intent

后端 未结 4 1077
無奈伤痛
無奈伤痛 2020-12-05 00:44

I have this code:

 Intent intent = new Intent(); 
 intent.setAction(Intent.ACTION_SEND); 
 startActivity(intent); 

Which will successfully

4条回答
  •  心在旅途
    2020-12-05 01:30

     String cc=trlink.toString();
     Intent share = new Intent(Intent.ACTION_SEND);
     share.setType("text/plain");
     share.putExtra(Intent.EXTRA_TEXT,cc);
     startActivity(Intent.createChooser(share,"Share Text"));
    

提交回复
热议问题