Filter Android StrictMode violations by duration
Is there a way to filter StrictMode violations based on duration? It's getting a bit annoying having these StrictMode policy violation; ~duration=6 ms: android.os.StrictMode$StrictModeDiskWriteViolation: policy=31 violation=1 poisoning my logcat. I think StrictMode is a useful feature, but I'd like to deal only with violations with a duration greater than, let's say, 50 ms, in the first development phase. The StrictMode API does not support filtering by duration. But you can easily do so by filtering StrictMode's log reports: A. Configure StrictMode to write errors to log: public void onCreate