The below code deals with leaks of memory like it detects when in SQLite finalize is called or not.
suggest changedetectLeakedClosableObjects was added in API 11. It reports a Closeable that was finalized without close().
StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
.detectActivityLeaks()
.detectLeakedClosableObjects()
.penaltyLog()
.build());
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents