Skip to content Skip to sidebar Skip to footer

"cannot Attach Empty File" - When Sharing Image From Internal Memory To Gmail

I am trying to share image stored in Internal memory using Intent. The process is as follows Generate bitmap of a layout Save this bitmap to a file in Internal memory Share this

Solution 1:

Third-party apps do not have access to your internal storage. And, particularly starting with Android N, sharing files is strongly discouraged in general.

Instead, use FileProvider to share the content. This is also covered in the documentation.

Post a Comment for ""cannot Attach Empty File" - When Sharing Image From Internal Memory To Gmail"