Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Way to pause the Android Emulator?

I do a lot of development on my laptop, and I use various Android Emulators to do it. When running, the emulator frequently takes up a large amount of my CPU, and consequently decreases my laptop's battery life significantly.

Is there a way to temporarily pause the emulator, or at least shut down whatever it is that's consuming all the unnecessary cpu?

I know that with sdk r9 and later I can snapshot the emulator and quit/restart it fairly quickly, but I'm hoping for something even less invasive to my work flow than that.

like image 869
emmby Avatar asked Mar 02 '11 18:03

emmby


People also ask

How do I stop Android Emulator from running?

To stop a running emulator, click Menu and select Stop. To clear the data for an emulator, select Wipe Data.

How do I pause activity on Android?

If you're unexpectedly interrupted in the middle of a workout, don't worry! Just hit the pause button on your Android phone to pause the workout.

How do I put Android Emulator to sleep?

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


1 Answers

In Linux you can stop the process by

$ killall --signal STOP emulator

or

$ killall --signal STOP emulator64-arm

At a later time continue by

$ killall --signal CONT emulator

or

$ killall --signal CONT emulator64-arm

Gotcha: If you update Eclipse, make sure the emulator is not stopped when restarting eclipse. Eclipse will stall when loading, waiting for the stopped emulator to continue.

like image 195
Diego Torres Milano Avatar answered Sep 16 '22 19:09

Diego Torres Milano