android share image in ImageView without saving in sd card

前端 未结 3 1193
一生所求
一生所求 2021-02-05 15:55

I want to Share the image in image view.but i don\'t want save to SDcard. But when i use Intent to share i used code

Intent share = new Intent(Intent.ACTION_         


        
3条回答
  •  清歌不尽
    2021-02-05 16:26

    You could also share it as the Media Gallery content provider URI (if the image is already on the phone, or if it came from the web you could share the URL (although it's not the same effect).

    But if came from the web and you directly decoded to Bitmap and now want to share it as a proper image, yeah, you really need the file!

提交回复
热议问题