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; //from ww w. j a v a 2 s .c o m import android.os.Bundle; import android.widget.Toast; import com.google.zxing.Result; import com.welcu.android.zxingfragmentlib.BarCodeScannerFragment; /** * Created by mito on 9/17/13. */ public class SampleFragment 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(); } }); } public SampleFragment() { } }