Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android support #52

Open
torkleyy opened this issue Feb 9, 2018 · 3 comments
Open

Android support #52

torkleyy opened this issue Feb 9, 2018 · 3 comments

Comments

@torkleyy
Copy link

torkleyy commented Feb 9, 2018

I've tried to build a project for Android and it tried to link to xcb. Turns out this library depends on xcb :)

Is Android support planned and if not, could we add a compile_error! if the target platform is Android?

@aweinstock314
Copy link
Owner

Android support is in scope. It looks like the relevant documentation is here.
I've asked the Servo folks about recommended crates for poking at android APIs from Rust, and will add that information here once I get a reply.

@nerd190
Copy link

nerd190 commented Feb 23, 2021

@torkleyy I would love this too (I use a tablet with Termux when Im away from my PC), much better than a laptop!

@aweinstock314 there is no need to find any Rust/Android APIs, Termux provide these via its termux-api (an API written in Python that can interact with our ugly Java ways :)
The API provides many commands including:

  • termux-clipboard-set
  • termux-clipboard-get

The two above values are all we need added! 👍
They work exactly like xclip/xsel so use them as a template, just replace with the the relevent values with the two commands listed above (both termux commands do not take any extra args, just one to set and one to get).

It would be really appreciated! (I found a beautiful text editor but it uses this utility so I am currently unable to copy/paste). Plus, it would close this (3 year old) issue too 👍

Here is a utility I use (for some reference), its written in Rust, provides a cross-platform clipboard-cli (that includes Android/Termux), hope it helps: https://github.com/yaa110/cb

THANK YOU!

@Fancyflame
Copy link

I have implemented it. Please take a look: #87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants