diff --git a/src/android/CameraActivity.java b/src/android/CameraActivity.java
index <HASH>..<HASH> 100644
--- a/src/android/CameraActivity.java
+++ b/src/android/CameraActivity.java
@@ -330,6 +330,9 @@ public class CameraActivity extends Fragment {
   }
 
   public void switchCamera() {
+    // Find the total number of cameras available
+    numberOfCameras = Camera.getNumberOfCameras();
+    
     // check for availability of multiple cameras
     if (numberOfCameras == 1) {
       //There is only one camera available
Update number of camera before switching

It allows to detect new plugged cams