在Android模拟器粘贴文本模拟器、文本、Android

2023-09-12 10:43:22 作者:找不到方向

反正是有复制/粘贴(台式机的)剪贴板中的内容,以 EditView中在Android模拟器?

Is there anyway to copy/paste (desktop's) clipboard content to EditView on Android Emulator?

(只是为了简化开发/测试)的

推荐答案

在一个终端,键入亚行外壳输入文本我在这里的字符串。对于某些转义字符如\ $的

请注意,对于包括空格在文本中的另一种方法是替代%S 每个空格字符。

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