Let's say we have the string String s= "Message from programmatic KeyboardPress"
. How do I send this string as keyboard output. For instance, a user currently focuses on a textfield and my string appears, since a keyboard output has been simulated.
Now, I don't want to set the text of a EditText object programmatically. I want to simulate a real keyboard input. I found how to do it in basic java (How to send keyboard outputs).
How does one realize this in android java?