diff --git a/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerDatabaManagerStubFragment.java b/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerDatabaManagerStubFragment.java index 644e5447..e533ddb8 100644 --- a/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerDatabaManagerStubFragment.java +++ b/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerDatabaManagerStubFragment.java @@ -66,7 +66,10 @@ public class ScannerDatabaManagerStubFragment extends Fragment { super.onViewCreated(view, savedInstanceState); view.findViewById(R.id.button_call_camera).setOnClickListener(v -> { - + Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); + if (takePictureIntent.resolveActivity(requireActivity().getPackageManager()) != null) { + cameraLauncher.launch(takePictureIntent); + } }); } } \ No newline at end of file