How to use InputMethodService in wifi p2p service

2019-09-14 11:38发布

I am new to android, please tell me if inputMethodService can work with wifi p2p service discovery? I want one phone to act as a keyboard for another phone. Please tell me if it is possible and which resources to refer in order to begin with it. Thank you.

1条回答
兄弟一词,经得起流年.
2楼-- · 2019-09-14 12:11

I think what you need to do is not worry about the input-method in the first device, but create an application where you input text as normal from what ever you are using for input on the android device and then make that application responsible to transfer the acquired text to another device in which you want to input, in real time.

Given the restrictions on the IME in android, the other device should have the modified input-method that receives the data and enters for you in turn.

You have to be very careful for this kind of data transfer because the IME in android is essentially capable of monitoring anything the user enters, so the data transfer should be really really secure.

查看更多
登录 后发表回答