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.
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.
I am trying to avoid saving the image and only use the clipboard.
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.
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
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)
Yeah. This is tempting me to set up an android dev environment myself. Never done any android dev besides React Native.