title: How to save a social media post as image programmatically to the gallery
body: <p>I want to create a feature in my app that will allow the user to save a social media post to the gallery. the idea is when the user presses share on the post, my app will appear in the share dialog, and by choosing the app, the image/gif/video will be automatically saved in the gallery. but the data that I receive from the intent is of type text/plain, naturally since the share feature provides a link to the post. however on 9gag and reddit for example, on the share dialog there's a "Save to Gallery" option that does save the post as a media file to the gallery. So my question is, is it possible to program a similar function in my app? what exactly do I need to do to achieve such a functionality? I am not asking for a code, just directions, where to look for an answer since i couldn't find anything on google about my topic.</p>
  
  <p>Thanks in advance !</p>