i have an activity that holds Two Fragments, i want to run ZXING scanner on one of the fragments,
currently i do this on another activity like this >
If you really need to open it in a support fragment you can use:
IntentIntegrator.forSupportFragment(MyFragment.this).initiateScan();
In your Fragment:
public void onActivityResult(int requestCode, int resultCode, Intent data) {
IntentResult result = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);
String barcode = result.getContents();
}
Try it!