Back to project page zxingfragmentlib.
The source code is released under:
Apache License
If you think the Android project zxingfragmentlib listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.welcu.android.zxingfragmentlibsample; /* w w w. j a v a 2 s . co m*/ import android.os.Bundle; import android.widget.Toast; import com.google.zxing.Result; import com.welcu.android.zxingfragmentlib.BarCodeScannerFragment; /** * Created by joyarzun on 4/8/14. */ public class SampleStretchedFragment extends BarCodeScannerFragment { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.setmCallBack(new IResultCallback() { @Override public void result(Result lastResult) { Toast.makeText(getActivity(), "Scan: " + lastResult.toString(), Toast.LENGTH_SHORT).show(); } }); //cameraManager.setManualFramingRect(450, 349, 100, 50); } public SampleStretchedFragment() { } }