问题
Is there anyway to lock genymotion emulator?
To test new notifications in Android 5.0, lollipop, I need to lock the Genymotion.
Thank you!
回答1:
The question turns out to be useless. I would delete this, but I am not allowed to do so because, this question already has an answer.
Sorry
I just had to click on power button twice.
回答2:
go to settings>security>screen lock
and set it to swipe
. then press the power button twice.
回答3:
Try: adb shell input keyevent 26
. That should emulate a power button press. See this for more information. Of course you need to do adb connect [device id]
first.
回答4:
It's quite simple.
Just press the power button twice in genymotion to lock the screen of emulator.
You can also lock the Android Emulator in same way by just clicking the power button twice.
来源:https://stackoverflow.com/questions/29292060/how-to-lock-genymotion