I know that StrictMode designed mainly to be used in application development phase, but according to my app needs, it's not acceptable to get ANR while it's quite acceptable to get crash, and StrictMode
provides a way to prevent ANR dialogs:
StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().detectAll()
.penaltyLog().penaltyDeath().build());
what if I used it inside the app production phase? and what will happen when the app getting ANR while StrictMode
used? will it freeze, crash, or wait until getting responded again?