private int getDisplayRotation() {
        return windowManager.getDefaultDisplay().getRotation();
    }
Considered active if between resume() and pause().

@return true if active
zxing-android-embedded/src/com/journeyapps/barcodescanner/CameraPreview.java