title: Error in Switch cases of ZXing project in android
body: <p>I have downloaded the ZXing project from the <a href="http://code.google.com/p/zxing/downloads/detail?name=ZXing-2.0.zip&amp;can=2&amp;q=">http://code.google.com/p/zxing/downloads/detail?name=ZXing-2.0.zip&amp;can=2&amp;q=</a> and followed all the steps of <a href="http://damianflannery.wordpress.com/2011/06/13/integrate-zxing-barcode-scanner-into-your-android-app-natively-using-eclipse/">http://damianflannery.wordpress.com/2011/06/13/integrate-zxing-barcode-scanner-into-your-android-app-natively-using-eclipse/</a>.</p>
  
  <p>But my ZXing project is giving error in switch cases of ZXing Library.</p>
  
  <p>Error is in following code </p>
  
  <pre><code>private final Handler handler = new Handler() {
      @Override
      public void handleMessage(Message message) {
        switch (message.what) {
          case R.id.search_book_contents_succeeded:
            handleSearchResults((JSONObject) message.obj);
            resetForNewQuery();
            break;
          case R.id.search_book_contents_failed:
            resetForNewQuery();
            headerView.setText(R.string.msg_sbc_failed);
            break;
        }
      }
    };
  </code></pre>
  
  <p>error is in switch statement 
  error is "<strong>case expressions must be constant expressions</strong>"</p>
  
  <p>Any Idea ? Thanxs </p>