Actually i'm having some issues in my app,
Like i have a button that open front camera and skan a waiter badge but the problem comes when i try to check if a device has the camera and if it hasn't i just hide that buttons.
But i have a device that use the front camera as QR Scanner so it's not really a camera that can be used so the app crash when i try to click that button.
So the question is how can i handle and check if not only the camera exists but even if it works?