Closed AugustoAleGon closed 7 years ago
This is not a library related issue. You don't need to add the fragment programmatically if you have already added in layout xml. If you want to add it in code then just have an empty FrameLayout
in your xml where you would like the scanner to be and add the fragment in that framelayout from code. Reading the docs and tutorials on using fragments should help.
ohh I see @iamMehedi Thanks for your support I will check that information relative to fragments. I am still have to practice a lot. Thanks again for taking your time to answer my question.
Hello Mehedi,
I already took the id and put it in the right place, but it is the same problem. It gives me an error of E/Zygote: MountEmulatedStorage(). After 3 times trying It gives an error of camera. This is my layout:
I am using this activity:
and this is my main activity:
I still have an error. I already checked if I have the permission on the camera in the manifest. It pops up the camera and then it crashes. @iamMehedi