Sachin Varshney

Results 3 comments of Sachin Varshney

Replace the method getCaptureImageOutputUri in the CropImage.java file with the below code, might solve the problem. it worked for me public static Uri getCaptureImageOutputUri(@nonnull Context context) { Uri outputFileUri =...

Replace the method getCaptureImageOutputUri in the CropImage.java file with the below code, might solve the problem. it worked for me public static Uri getCaptureImageOutputUri(@NonNull Context context) { Uri outputFileUri =...

``` private val openGalleryRequest = registerForActivityResult(ActivityResultContracts.StartActivityForResult()) { if (it.resultCode == AppCompatActivity.RESULT_OK) { it.data?.data?.let { uri -> decodeQRCode(uri) } } } private fun openGallery() { val intent = Intent() intent.type =...