How To Share An Image From Your Android App Without Exposing It To The Gallery
Easily share images to Android messenger or email apps
Sharing an image is a common feature implemented in mobile apps. In this article, we will take a look at how we can easily share a Bitmap
to other installed e-mail or messenger apps on your Android device.
In this article, we will follow up one of my previous articles “How To Programmatically Take Screenshots With Android’s PixelCopy API” and have a look at how we can finally share our screenshot without exposing the image to the gallery.
Note: This article is a follow-up to my article about the PixelCopy API. If you are interested in how to take programmatically an automated screenshot, make sure you first read that one:
Recall the setup
In the previous article, we saw how we can programmatically take screenshots.
In the last step, we implemented an MVVM architecture pattern for taking a screenshot and ended up with a…