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.

you are viewing a single comment's thread
view the rest of the comments
[-] 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.

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

Android

28160 readers
334 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