Android The below code deals with leaks of memory, like it detects when in SQLLite finalize is called or not.


Example

StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()  
    .detectActivityLeaks()  
    .detectLeakedClosableObjects()  
    .penaltyLog()  
    .build());