Android 扫一扫----ZXing 的使用
1. 首先现在ZXing的lib 2. 在Android Studio集成ZXing。 1 2 3 public void scan(View view){ startActivityForResult( new Intent(MainActivity. this , CaptureActivity. class ), 0 ); } 以上是打开扫一扫。 二维码的生成可以去http://cli.im/ 3. 创建二维码 1 2 3 4 5 6 7 8 9 10 public void make(View view){ String input = mInput.getText().toString(); if (input.equals( "" )){ Toast.makeText(MainActivity. this , "输入不能为空" , Toast.LENGTH_LONG).show(); } else { Bitmap bitmap = EncodingUtils.createQRCode(input, 500 , 500 , BitmapFactory.deco...



