The below Code Snippet is to setup the StrictMode for Thread Policies. This Code is to be set at the entry points to our application.

suggest change
StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()  
    .detectDiskWrites()  
    .penaltyLog() //Logs a message to LogCat  
    .build())

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Strick Mode Policy:
*The below Code Snippet is to setup the StrictMode for Thread Policies. This Code is to be set at the entry points to our application.

Table Of Contents
169XMPP
203Strick Mode Policy
230AIDL
242Okio