Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you put the android emulator into sleep mode? [duplicate]

Is there a way to get the android emulator into sleep mode?

like image 743
ninjasense Avatar asked Dec 10 '10 17:12

ninjasense


People also ask

How do I put Android Emulator to sleep?

By pressing F7 you can emulate sleep mode in your emulator.

How do I lock my emulator screen?

To reach the lock screen of Android Emulator, in recent emulators (using Android Studio 2.3) just click the "power" button in the Emulator. You'll get a black screen. Click it again and there it is, your lock screen.

How do you unlock an emulator?

Go to AVD manager screen, edit your Emulator and go to Advanced Settings . Select Cold boot as Boot option located in Emulated Performance section. This way you will be able to restart your emulator and get it unlocked without loosing data.


2 Answers

Try pressing F7. That should at least send you back to the lock screen.

like image 112
Ryan Berger Avatar answered Sep 25 '22 15:09

Ryan Berger


You might try PowerManager.gotosleep()

like image 40
John Avatar answered Sep 21 '22 15:09

John