Android Studio – How to return a result in ActivityResultLauncher
I'm using ZXing API. I have the following code: button.setOnClickListener(new View.OnClickListener() { public void onClick(View v){ IntentIntegrator integrator = new IntentIntegrator(activity); integrator.setDesiredBarcodeFormats(IntentIntegrator.QR_CODE_TYPES); integrator.setCameraId(0); integrator.setOrientationLocked(true); integrator.setPrompt("Para usar o flash utilizar os botões do volume"); integrator.initiateScan(); However, I don't know how to…