ankitjaininfo ankitjaininfo - 6 months ago 73
Android Question

Paste text on Android Emulator

Is there anyway to copy/paste (desktop's) clipboard content to

EditView
on Android Emulator?

(just for the sake to ease development/test)

Answer

In a terminal, type adb shell input text 'my string here. With some characters escaped like \$ that'

Note that an alternative method for including spaces in the text is to substitute %s for each space character.