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.

  • @davidgro
    link
    English
    31 day ago

    Perhaps you can paste it into an image editor app and then save it as a file?

    Pretty sure the media picker can only pick files on Android.

    Also if the image was on screen at some point before it was on the clipboard​, you could take a screenshot as a rough workaround. Those are also saved as files.

    • 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
          13 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
            213 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
              211 hours ago

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

  • @[email protected]
    link
    fedilink
    English
    21 day ago

    I’m not aware of any such app and I don’t see one that does this with a quick Google search. Is there a reason you’re not just sharing the image directly?

      • @[email protected]
        link
        fedilink
        English
        01 day ago

        No, using the share function from whatever app you’re sharing from. In Firefox, when I long-press an image, there’s a share option right there.

        I’m on Android 15 and I also get a share button when I copy an image to the clipboard too.

        • go $fsck yourselfOP
          link
          English
          01 day ago

          I’m not trying to share the image, I’m trying to upload the image.

          • @[email protected]
            link
            fedilink
            English
            21 day ago

            That is what the share function does, when you choose to share to an external location. If you have the imgur app, you can choose it as a destination from the share menu and it will upload it.

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

              Imgur was only an example. I don’t want to use imgur’s app and there are other websites or apps that I would like to upload to that do not work in that way.

              I just want to be able to select an image from my clipboard when an app wants me to select an image from my phone.