How can I transform a Bitmap into a Uri?

前端 未结 6 2125
一向
一向 2020-12-30 19:34

I\'m trying to share images with Facebook, twitter, etc using SHARE INTENT from Android.

I found code to send a image to the share intent, but this code

6条回答
  •  一个人的身影
    2020-12-30 19:53

    String picName = "pic.jpg";
            String PATH = Environment.getExternalStorageDirectory().getPath()+ picName;
            File f = new File(PATH);
            Uri yourUri = Uri.fromFile(f);
    

提交回复
热议问题