package io.github.shark_app.shark;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class ScanActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }
}

@@ -48,238 +48,2939 @@
 oid.
-support.v7.app.AppCompatActivity;%0Aimport android.os.Bundle;%0A%0Apublic class ScanActivity extends AppCompatActivity %7B%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);
+os.Bundle;%0Aimport android.support.v7.app.AlertDialog;%0Aimport android.support.v7.app.AppCompatActivity;%0Aimport android.util.Log;%0Aimport android.util.SparseArray;%0A%0Aimport com.google.android.gms.samples.vision.barcodereader.BarcodeCapture;%0Aimport com.google.android.gms.samples.vision.barcodereader.BarcodeGraphic;%0Aimport com.google.android.gms.vision.barcode.Barcode;%0A%0Aimport java.util.List;%0A%0Aimport xyz.belvi.mobilevisionbarcodescanner.BarcodeRetriever;%0A%0Aimport static io.github.shark_app.shark.R.id.barcode;%0A%0Apublic class ScanActivity extends AppCompatActivity implements BarcodeRetriever %7B%0A    private static final String TAG = %22CAMERA%22;%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setContentView(R.layout.activity_scan);%0A        BarcodeCapture barcodeCapture = (BarcodeCapture) getSupportFragmentManager().findFragmentById(barcode);%0A        barcodeCapture.setRetrieval(this);%0A    %7D%0A%0A    @Override%0A    public void onRetrieved(final Barcode barcode) %7B%0A        Log.d(TAG, %22Barcode read: %22 + barcode.displayValue);%0A        runOnUiThread(new Runnable() %7B%0A            @Override%0A            public void run() %7B%0A                AlertDialog.Builder builder = new AlertDialog.Builder(ScanActivity.this)%0A                        .setTitle(%22code retrieved%22)%0A                        .setMessage(barcode.displayValue);%0A                builder.show();%0A            %7D%0A        %7D);%0A    %7D%0A%0A    @Override%0A    public void onRetrievedFailed(final String reason) %7B%0A        Log.d(TAG, %22Barcode reading failed : %22 + reason);%0A        runOnUiThread(new Runnable() %7B%0A            @Override%0A            public void run() %7B%0A                AlertDialog.Builder builder = new AlertDialog.Builder(ScanActivity.this)%0A                        .setTitle(%22Barcode failed%22)%0A                        .setMessage(reason);%0A                builder.show();%0A            %7D%0A        %7D);%0A    %7D%0A%0A    @Override%0A    public void onRetrievedMultiple(final Barcode closetToClick, final List%3CBarcodeGraphic%3E barcodeGraphics) %7B%0A        runOnUiThread(new Runnable() %7B%0A            @Override%0A            public void run() %7B%0A                String message = %22Code selected : %22 + closetToClick.displayValue + %22%5Cn%5Cnother %22 +%0A                        %22codes in frame include : %5Cn%22;%0A                for (int index = 0; index %3C barcodeGraphics.size(); index++) %7B%0A                    Barcode barcode = barcodeGraphics.get(index).getBarcode();%0A                    message += (index + 1) + %22. %22 + barcode.displayValue + %22%5Cn%22;%0A                %7D%0A                AlertDialog.Builder builder = new AlertDialog.Builder(ScanActivity.this)%0A                        .setTitle(%22code retrieved%22)%0A                        .setMessage(message);%0A                builder.show();%0A            %7D%0A        %7D);%0A    %7D%0A%0A    @Override%0A    public void onBitmapScanned(SparseArray%3CBarcode%3E sparseArray) %7B%0A        // when image is scanned and processed
 %0A   

Add QR Code scanning functionality