Paste text on Android Emulator

后端 未结 20 1446
臣服心动
臣服心动 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:19

    Only For API level >= 24

    Copy any text from your local machine and then simply run this command

    adb shell input keyevent 279
    

    Make sure In Android Emulator Settings the Enable Clipboard Sharing options is enabled

提交回复
热议问题