开发者

Does anyone know how to lock the screen using monkeyrunner?

开发者 https://www.devze.com 2023-02-11 07:59 出处:网络
I am trying to lock the screen using monkeyrunner开发者_JAVA百科. Please help me out. Thankstry below code:-

I am trying to lock the screen using monkeyrunner开发者_JAVA百科. Please help me out.

Thanks


try below code:-

device.press('KEYCODE_POWER',MonkeyDevice.DOWN_AND_UP)


press power button of emulator using monkeyRunner, and press

0

精彩评论

暂无评论...
验证码 换一张
取 消