zxing project on android
- by Aisthesis Cronos
Hello everybody
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: tuto1, and many tags and tutorials here tuto2, tuto3 ... But I failed each time. I can't import the android project into eclipse IDE to compile it with my code "not via Intent zxing APK-and my program like this example :
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();
}
}
}`
".
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?
1 - I use Windows 7 64-bit Home Premium
2 - Eclipse IDE for Java EE Web Developers. Version: Helios Service Release 2 Build id: 20110218-0911
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