Saturday, October 1, 2016

Demo App, my StrictMode Code

So I will be posting some tips as I finish my app demos this month. The first tip is to set up some gradle flavors for each api level you are targeting and than code out an effective strict-mode setup :



Nice and simple and it works better than doing a detect all. the only caution is that it does not catch every ANR. For that purpose you really should check out using ANRWatch Dog:

ANRWatchDog