Search code examples
androidandroid-layoutandroid-intentandroid-emulatoradb

How can I crash/kill a running app


I would like to crash my Android app by using command-line ADB tool during my app is running, is it possible to do? and how ?

(Basically, I want to test if my app persist the necessary informations when it is crashed. So, I would like to demo this by crash my app by some command-line tool, like ADB.)

***** Update ********

In other words, how to kill my app process by using ADB tool?


Solution

  • I can easily kill my app from Eclipse DDMS. Just stop the process , e.g. stop "com.my.app"