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

ADBKeyBoard may help to solve the unicode input related issues #729

Closed
rapiz1 opened this issue Aug 15, 2019 · 1 comment
Closed

ADBKeyBoard may help to solve the unicode input related issues #729

rapiz1 opened this issue Aug 15, 2019 · 1 comment

Comments

@rapiz1
Copy link

rapiz1 commented Aug 15, 2019

I have read some issues related to non-ASCII characters input like supporting non-English keyboard layout, Chinese input and so on.

One of the ideas that tried to solve the problem was to use the computer's input method, and due to something like adb input text '世界你好' not working, failed.

So, if we can directly send unicode string to the device, we can solve the problem, right?
I did some searching on the Internet and have found this: ADBKeyBoard
Here's the steps I think will work ( Sorry for my limited knowledge on Java and Andord programming):

  1. Invoke the computer's input method and get the character the user want to input.
  2. Use ADBKeyBoard to send it to the phone.

But there is also one drawback: This may destroy the gaming experience because the phone no longer receives the key event.

But this can be work around:
We can enable ADBKeyBoard when the Android input method is detected, or just provide an option to enable ADBKeyBoard.

@rom1v
Copy link
Collaborator

rom1v commented Aug 15, 2019

Ref: #431 (comment)

@rom1v rom1v added the keyboard label Sep 5, 2019
@rapiz1 rapiz1 closed this as completed Sep 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants