I have this simple code that plans to Scan a QR Code and return the value to the user:
public class QRCodeScanner extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
private static final int REQUEST_BARCODE;
Intent intent = new Intent("com.google.zxing.client.android.SCAN");
intent.putExtra("SCAN_MODE", "QR_CODE_MODE");
startActivityForResult(intent, REQUEST_BARCODE);
Toast toast = Toast.makeText(this, "Start scanning QR code", Toast.LENGTH_SHORT);
toast.show();
}
Now I know that I need to place the src/com.google.zxing.client.* folders somewhere in this project but where? When I copy-paste it over at my own src/ folder they all have errors that weren't present in the original CaptureActivity project. How do I fix this?