title: Catch ANR globally in Application
body: <p>i just want to know is there any way to get ANR notifications either through triggering any  event functions or atleast catch it .despite running long process in separate thread there are  possibities of ANR.so all i want to do is  when app detects ANR it has to handle some functions automatically.please assist me how to achieve this.thank you.</p>