Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

kill a process running in the android emulator

Tags:

android

How do I kill an application running in the emulator? I mean manually and not through code.

The Settings->Apps->Running tab does not display my application and Dev Tools->Running Processes lists my application but I don't see how to kill the process. I don't see any option in adb to kill a process either.

like image 864
Code Poet Avatar asked Nov 22 '11 13:11

Code Poet


People also ask

How do I kill an emulator process?

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

How do I kill an emulator in terminal?

If you don't want to have to know the serial name of your device for adb -s emulator-5554 emu kill , then you can just use adb -e emu kill to kill a single emulator.


2 Answers

Go to DDMS and select your App process. Click STOP icon in upper-right-hand side. It will kill the process.

like image 155
Hardik Gajjar Avatar answered Oct 11 '22 08:10

Hardik Gajjar


If you want to kill without ddms :

Use this to list the processes and their pid's

adb shell ps 

and go for the kill using

adb shell kill <PID>

Where <PID> is the Process you want to kill (int)

like image 25
Reno Avatar answered Oct 11 '22 09:10

Reno