Created
February 9, 2023 04:14
-
-
Save thoinv/c781912f9a4e0e14cb31a15d457480b4 to your computer and use it in GitHub Desktop.
[Detect Leaked Object SQL Lite debug] #database #sqlite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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