I’m trying to figure out how I can choose an image in my clipboard when the media picker window comes up.

For example, if I’m on imgur.com and I want to upload an image in my clipboard, there is no option for me to paste into the input field.

Ideally, I would like to have something available in the media picker to paste from clipboard. That would allow using clipboard for any app.

I kinda consider this something like adding the clipboard to the “share” menu. https://github.com/tengusw/share_to_clipboard

Is there anything like this?

I do not have root access on my phone.

  • go $fsck yourselfOP
    link
    English
    11 day ago

    I am trying to avoid saving the image and only use the clipboard.

    • @davidgro
      link
      English
      1
      edit-2
      1 day ago

      I actually took a quick look at the Android API to see if there was an obvious way to make an app to do this, and as far as I could find, there is not. It might be impossible.

      • go $fsck yourselfOP
        link
        English
        1
        edit-2
        11 hours ago

        In the media select window I see the ability to select from other apps:

        I do have to get there by selecting “browse” from the three dots menu

        • @davidgro
          link
          English
          211 hours ago

          Oh! Good find. Looks like the way to do this is by implementing ACTION_GET_CONTENT. I can’t help you beyond that (I don’t have a dev environment set up and am a novice anyway)

          • go $fsck yourselfOP
            link
            English
            29 hours ago

            Yeah. This is tempting me to set up an android dev environment myself. Never done any android dev besides React Native.