I'm new to Android development.
I wrote a funny app which endlessly pops messages saying "Unfortunately, YOUR_FREAKING_APP has stopped." on launch.
To force-close it, I held down the Home button but the Recent Apps doesn't show while the message box is active. Another message box shows after I touch 'OK' roughly in 500ms.
Workarounds I've found so far:
- Close the message box and hold down the Home button as quickly as possible. → rarely works.
- Connect the device to PC and open Notifications, then touch 'Connected as a media de...' to switch to 'USB computer connection'.
- After switching, the mesage box doesn't show up any more.
- Touch 'OK' and adios. → this works but what if away from PC?
Are there any other methods to force close?