Android examples for Android OS:Thread
Ignore Thread Strict Mode
//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()); } }