title: zxing project on android
body: <p>Many weeks ago,I tried to work on a mini project on Android OS 
  requires ZXING, I followed several tutorials on this web site and on other 
  Example: <a href="https://stackoverflow.com/questions/tagged/zxing">tuto1</a>, and many tags and tutorials here <a href="http://knol.google.com/k/alec-go/modifying-the-android-barcode-scanner/2vd5zn6va2fqd/2" rel="nofollow noreferrer">tuto2</a>, <a href="https://code.google.com/p/zxing/wiki/GettingStarted" rel="nofollow noreferrer">tuto3</a> ... But I failed each time. I can't import the android project into eclipse IDE to compile it <strong>with my code</strong>  "not via Intent zxing APK-and my program like this example : </p>
  
  <pre><code>private Button.OnClickListener btScanListener = new Button.OnClickListener() {
      public void onClick(View v) {
          Intent intent = new Intent("com.google.zxing.client.android.SCAN");
          intent.putExtra("SCAN_MODE", "QR_CODE_MODE");
  
  
          try {
            startActivityForResult(intent, REQUEST_SCAN);
         } catch (ActivityNotFoundException e) {
           Toast.makeText(Main.this, "Barcode Scanner not intaled ", 2000).show();
         }
      }
  };
  
  
  
  public void onActivityResult(int reqCode, int resCode, Intent intent) {
      if (REQUEST_SCAN == reqCode) {
          if (RESULT_OK == resCode) {
              String contents = intent.getStringExtra("SCAN_RESULT");
              Toast.makeText(this, "Succès : " + contents, 2000).show();
          } else if (RESULT_CANCELED == resCode) {
              Toast.makeText(this, "Scan annulé", 2000).show();
          }
      }
  }`
  </code></pre>
  
  <p>".
  I feel disappointed, frustrated and sad. 
  I still have errors after importing the project.
  I tried both versions 1.5 and 1.6 zxing 
  I tried to import the project c: \ ZXing-1.6 \ android, and an other new project with c: \ ZXing-1.6 \ zxing-1.6 \ android,I cheked out SVN: ttp: / / zxing.googlecode.com / svn / trunk / zxing-read-only with tortoiseSVN and reproduce the same work, but unfortunately without results! 
  I really fed up with myself  ... 
  Please help me to solve this problem.how can I import the project and compile it correctly in my own project?</p>
  
  <p>1 - I use Windows 7 64-bit Home Premium</p>
  
  <p>2 - Eclipse IDE for Java EE Web Developers. Version: Helios Service Release 2 Build id: 20110218-0911</p>
  
  <p>What is the effective and sure method to run this, otherwise if there is a video or a guide details or 
  someone who already done it previously
  I would really appreciate it if someone would help me out</p>