How to handle App crashes while execution?

let me know if anybody knows

I have lots of “checkpoints” that check for the Android launcher on the screen to see if it’s showing, then I assume the app crashed, and break out the test, and capture logcat in an @AfterTest (using TestNG)