Android Utililty Methods StrictMode Set

List of utility methods to do StrictMode Set

Description

The list of methods to do StrictMode Set are organized into topic(s).

Method

voidsetStrictMode()
set Strict Mode
StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
        .detectAll().penaltyLog().build());
StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
        .detectAll().penaltyLog().build());
voidactivateStrictMode()
activate Strict Mode
if (isDebugBuild()) {
    StrictMode
            .setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
            .detectDiskReads()
            .detectNetwork().penaltyLog()
            .build());
    StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
            .detectLeakedSqlLiteObjects()
...