Ignore Thread Strict Mode - Android Android OS

Android examples for Android OS:Thread

Description

Ignore Thread Strict Mode

Demo Code


//package com.java2s;

public class Main {
    public static void IgnoreStrictMode() {
        android.os.StrictMode//from   w  w w. j a v a2 s. c om
                .setThreadPolicy(new android.os.StrictMode.ThreadPolicy.Builder()
                        .detectAll().penaltyLog().build());
    }
}

Related Tutorials