code: public static void enableStrictModeForDevRelease() {
          StrictMode.setThreadPolicy(
                  new StrictMode.ThreadPolicy.Builder()
                          .detectDiskReads()
                          .detectDiskWrites()
                          .detectNetwork()
                          .penaltyFlashScreen()
                          .build()
          );
  
      }
docs: Turn on Strict Mode options.  Good idea for dev builds.
  <p/>
  See: http://developer.android.com/reference/android/os/StrictMode.html