Skip to content

Instantly share code, notes, and snippets.

@SeanZoR
Created February 22, 2014 11:26
Show Gist options
  • Select an option

  • Save SeanZoR/9152380 to your computer and use it in GitHub Desktop.

Select an option

Save SeanZoR/9152380 to your computer and use it in GitHub Desktop.
Android - Monitor using strict mode
public static void activateStrictModeFull(){
StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder()
.detectAll()
.penaltyLog()
.build());
StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
.detectAll()
.penaltyLog()
.build());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment