Ignore Strict Mode from Thread Policy - Android android.util

Android examples for android.util:StrictMode

Description

Ignore Strict Mode from Thread Policy

Demo Code

public class Main {

  public static void IgnoreStrictMode() {
    android.os.StrictMode//from w ww .  j  a v a  2s  . c  o  m
        .setThreadPolicy(new android.os.StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build());
  }

}

Related Tutorials