java.util.zip.ZipException: duplicate entry

Make sure you have the latest build toolds and sdk from the SDK manager. I have converted those jars to Gradle dependencies. build.gradle: // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() maven { url ‘https://oss.sonatype.org/content/repositories/ksoap2-android-releases/’ } // <– added for ksoap } dependencies { … Read more

How to use Zxing in android [duplicate]

If the zxing barcode scanner is installed in the mobile, its very easy: Intent intent = new Intent(“com.google.zxing.client.android.SCAN”); intent.putExtra(“SCAN_MODE”, “PRODUCT_MODE”);//for Qr code, its “QR_CODE_MODE” instead of “PRODUCT_MODE” intent.putExtra(“SAVE_HISTORY”, false);//this stops saving ur barcode in barcode scanner app’s history startActivityForResult(intent, 0); and in OnActivityResult: @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, … Read more

Using ZXing to create an Android barcode scanning app [duplicate]

The ZXing project provides a standalone barcode reader application which — via Android’s intent mechanism — can be called by other applications who wish to integrate barcode scanning. The easiest way to do this is to call the ZXing SCAN Intent from your application, like this: public Button.OnClickListener mScan = new Button.OnClickListener() { public void … Read more