Match #1: /zxing-2.1/android/src/com/google/zxing/client/android/ViewfinderView.java: line 92-96 /android/5852059-6004996-1: line 4-8 //The code that actually draws the rectangle can be found here. < paint.setColor(resultBitmap != null ? resultColor : maskColor); < canvas.drawRect(0, 0, width, frame.top, paint); < canvas.drawRect(0, frame.top, frame.left, frame.bottom + 1, paint); < canvas.drawRect(frame.right + 1, frame.top, width, frame.bottom + 1, paint); < canvas.drawRect(0, frame.bottom + 1, width, height, paint); --- >paint.setColor(resultBitmap != null ? resultColor : maskColor); >canvas.drawRect(0, 0, width, frame.top, paint); >canvas.drawRect(0, frame.top, frame.left, frame.bottom + 1, paint); >canvas.drawRect(frame.right + 1, frame.top, width, frame.bottom + 1, paint); >canvas.drawRect(0, frame.bottom + 1, width, height, paint); Match #2: /zxing-2.1/android/src/com/google/zxing/client/android/camera/CameraConfigurationManager.java: line 63-66 /android/11338602-11338750-3: line 3-6 //Get screen resolution of your android device. < WindowManager manager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); < Display display = manager.getDefaultDisplay(); < int width = display.getWidth(); < int height = display.getHeight(); --- >WindowManager wm = (WindowManager) ctx.getSystemService(Context.WINDOW_SERVICE); >Display display = wm.getDefaultDisplay(); >int width = display.getWidth(); // deprecated >int height = display.getHeight(); // deprecated Match #3: /zxing-2.1/android/src/com/google/zxing/client/android/DecodeHandler.java: line 112-114 /android/4665122-4693788-1: line 3-5 //Create empty bitmap with dimensions of original image and ARGB_8888 format. < int width = source.getWidth(); < int height = source.getHeight(); < Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); --- >int width = src.getWidth(); >int height = src.getHeight(); >Bitmap dest = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); Match #4: /zxing-2.1/android/src/com/google/zxing/client/android/encode/EncodeActivity.java: line 188-190 /android/11338602-11338750-3: line 4-6 //Get screen resolution of your android device. Android Get Screen dimensions from Service. Get the physical resolution of the device using the following snippet. < Display display = manager.getDefaultDisplay(); < int width = display.getWidth(); < int height = display.getHeight(); --- >Display display = wm.getDefaultDisplay(); >int width = display.getWidth(); // deprecated >int height = display.getHeight(); // deprecated Match #5: /zxing-2.1/android/src/com/google/zxing/client/android/camera/CameraConfigurationManager.java: line 64-66 /android/3210769-5495726-1: line 4-6 //Android Get Screen dimensions from Service. Get the physical resolution of the device using the following snippet. < Display display = manager.getDefaultDisplay(); < int width = display.getWidth(); < int height = display.getHeight(); --- > Display display = window.getDefaultDisplay(); > int width = display.getWidth(); > int height = display.getHeight();