Camera not opening in redmi 3s prime (Android)
Clash Royale CLAN TAG #URR8PPP Camera not opening in redmi 3s prime (Android) I've made an android application that uses the camera to capture the image, i've tested it on a few devices and it works fine, but recently i came across a phone (Redmi 3s prime ). In this phone, when i open the app it shows a blank screen. i want to know if something is wrong with the phone or my code. // permission for the camera @Override public void onRequestPermissionsResult(int requestCode, @NonNull String permissions, @NonNull int grantResults) { switch (requestCode){ case RequestCameraPermissionID: { if(grantResults[0] == PackageManager.PERMISSION_GRANTED) { if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED){ return; } try { cameraSource.start(cameraView.getHolder()); } catch (IOException...