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

Android

28069 readers
211 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:

[email protected]


founded 2 years ago
MODERATORS
 

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 3 points 1 week ago (1 children)

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 1 points 1 week ago (1 children)

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

[–] davidgro 1 points 1 week ago* (last edited 1 week ago) (1 children)

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 1 points 1 week ago* (last edited 1 week ago) (1 children)

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 2 points 1 week ago (1 children)

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 2 points 1 week ago

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

[–] [email protected] 1 points 1 week ago (1 children)

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 1 points 1 week ago (1 children)

You mean sharing a link to the URL?

[–] [email protected] -1 points 1 week ago (1 children)

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 1 points 1 week ago (1 children)

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

[–] [email protected] 0 points 1 week ago (1 children)

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 2 points 1 week ago* (last edited 1 week 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.