Which is a no-go in Android as it can prevent GC in some cases, because as anonymous inner class it holds a reference to its parent and you end up leaking Activities.<p>It is usually presented as anti-pattern in talks about Android performance.