Skip to content

Instantly share code, notes, and snippets.

@thoinv
Created February 9, 2023 04:14
Show Gist options
  • Save thoinv/c781912f9a4e0e14cb31a15d457480b4 to your computer and use it in GitHub Desktop.
Save thoinv/c781912f9a4e0e14cb31a15d457480b4 to your computer and use it in GitHub Desktop.
[Detect Leaked Object SQL Lite debug] #database #sqlite
private void initSQLiteDetectLeakedObjects() {
StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
.detectLeakedSqlLiteObjects()
.detectLeakedClosableObjects()
.penaltyLog()
.penaltyDeath()
.build());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment