17

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.

top 12 comments
sorted by: hot top controversial new old
[-] davidgro@lemmy.world 3 points 3 weeks 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.

[-] gofsckyourself@lemmy.world 1 points 3 weeks ago

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

[-] davidgro@lemmy.world 1 points 3 weeks ago* (last edited 3 weeks 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.

[-] gofsckyourself@lemmy.world 1 points 3 weeks ago* (last edited 3 weeks 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@lemmy.world 2 points 3 weeks 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)

[-] gofsckyourself@lemmy.world 2 points 3 weeks ago

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

[-] catloaf@lemm.ee 0 points 3 weeks 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?

[-] gofsckyourself@lemmy.world 0 points 3 weeks ago

You mean sharing a link to the URL?

[-] catloaf@lemm.ee -1 points 3 weeks 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.

[-] gofsckyourself@lemmy.world 1 points 3 weeks ago

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

[-] catloaf@lemm.ee 0 points 3 weeks 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.

[-] gofsckyourself@lemmy.world 2 points 3 weeks ago* (last edited 3 weeks 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.

this post was submitted on 24 Nov 2024
17 points (94.7% liked)

Android

28154 readers
355 users here now

DROID DOES

Welcome to the droidymcdroidface-iest, Lemmyest (Lemmiest), test, bestest, phoniest, pluckiest, snarkiest, and spiciest Android community on Lemmy (Do not respond)! Here you can participate in amazing discussions and events relating to all things Android.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules


1. All posts must be relevant to Android devices/operating system.


2. Posts cannot be illegal or NSFW material.


3. No spam, self promotion, or upvote farming. Sources engaging in these behavior will be added to the Blacklist.


4. Non-whitelisted bots will be banned.


5. Engage respectfully: Harassment, flamebaiting, bad faith engagement, or agenda posting will result in your posts being removed. Excessive violations will result in temporary or permanent ban, depending on severity.


6. Memes are not allowed to be posts, but are allowed in the comments.


7. Posts from clickbait sources are heavily discouraged. Please de-clickbait titles if it needs to be submitted.


8. Submission statements of any length composed of your own thoughts inside the post text field are mandatory for any microblog posts, and are optional but recommended for article/image/video posts.


Community Resources:


We are Android girls*,

In our Lemmy.world.

The back is plastic,

It's fantastic.

*Well, not just girls: people of all gender identities are welcomed here.


Our Partner Communities:

!android@lemmy.ml


founded 2 years ago
MODERATORS