prepare Bitmap For Sharing
Writes bitmap to directory backed by DocumentSharingProvider.
Return
Uri that can be used for sharing the bitmap file to other apps.
Parameters
Context to use.
Bitmap that should be compressed and saved into file.
Throws
if the bitmap could not be exported.
Writes bitmap to directory backed by DocumentSharingProvider.
Return
Uri that can be used for sharing the bitmap file to other apps.
Parameters
Context to use.
Bitmap that should be compressed and saved into file.
The format of the compressed image.
The quality that compressor should use. Must be 0,100. 0 means compress for small size, 100 means compress for max quality. Some lossless formats (for example PNG), ignore the quality setting.
Optional file name used for sharing (this is the shared file name as seen by other apps).
Throws
if the bitmap could not be exported.