Paste text on Android Emulator

后端 未结 20 1522
臣服心动
臣服心动 2020-12-07 07:10

Is there an easy way to copy/paste (desktop\'s) clipboard content to EditView on Android Emulator?

(just for the sake to ease development/test)

20条回答
  •  孤街浪徒
    2020-12-07 07:33

    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.

提交回复
热议问题