--

The loop are to detect if there are any ANRs. And the leak can be avoided by simply setting the uncaught exception handler to null in the listener to avoid leaks

--

--

Mukesh Solanki
Mukesh Solanki

Written by Mukesh Solanki

Converts coffee to code! Writes about software development, automation, android. Connect with me on https://www.mukeshsolanki.com

Responses (1)