title: This Handler class should be static or leaks may occur (null)
body: <pre><code>This Handler class should be static or leaks may occur (null)
  </code></pre>
  
  <p>Is the 'class' this message referring to 'MyActivity' here, since Handler is an object and i did declare it static. Should I ignore it or there something I should add, like 'static' somewhere in the 'MyActivity' declaration (I tried this and got errors). I notice 'WeakReference' is often suggested for this lint warning.</p>
  
  <pre><code>public class MyActivity extends Activity{
  ...
  static Handler handler;
  ...
  handler = new Handler()
    {
      public void handleMessage(Message msg) {
  </code></pre>