I want to integrate zxing scanner into my app without needed of external application (zxing scanner from play store). This is my code
Button scan = (Button)
Elaborating stackex's answer.... Create an activity with any name.
public class CaptureActivityAnyOrientation extends CaptureActivity {
}
In manifest define the desired orientation or leave like below to work in both landscape and portait.
Finally use the activity created as setCaptureActivity.
IntentIntegrator.forSupportFragment(fragment)
.setCaptureActivity(CaptureActivityAnyOrientation.class)
.setOrientationLocked(false)
.setBeepEnabled(true)
.addExtra("PROMPT_MESSAGE", "Scan QR Code")
.initiateScan(IntentIntegrator.QR_CODE_TYPES);
Hope this helps.