Android Strict Mode Policy : A tool to catch the bug in the Compile Time. 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());