title: Which method(in Android Life Cycle) is called when "ANR(Application Not Responding)" happens in Android?
body: <p>Hope you you all doing well!</p>
  
  <p>I'm having issues when ANR does happen. I want to handle ANR, instead of that horror app crash want show my custom alert message saying "An error occurred."(like: Google Play Music App) with "Ok" button.</p>
  
  <p>Please provide answer/comment/suggestions any.</p>
  
  <p>Thank you in Advance.</p>