How to share image of imageview?

后端 未结 6 1886
余生分开走
余生分开走 2021-01-14 16:47

I have ImageView and I want to share its image.

Following is my code,

btshare.setOnClickListener(new OnClickListener() {

        @Override
                 


        
6条回答
  •  遥遥无期
    2021-01-14 17:21

    try creating the cache to store this image first and then share it because you can only share images which are public to other applications also.You cannot share the content which are private to you application.

    use Context.getExternalCacheDir() to create cache and then share the content of this cache

提交回复
热议问题