title: How to handle deprecated Handler in android
body: <p>Previously this code worked perfect.</p>
  <p>Now its is showing android.os.handler is deprecated.</p>
  <pre><code>private final Handler mHandler = new Handler() {
      @Override
      public void handleMessage(Message msg) {
          switch (msg.what) {
              case MESSAGE_STATE_CHANGE:
          break;
          }
      }
  </code></pre>
  <p>How can we resolve this issue.</p>