I am trying to use API Camera.getNumberOfCameras() but getting error \"Cannot find symbol\" while compiling. My API level is 8.
Can anyone please tell me whats
That method was not introduced until API Level 9 (Android 2.3). You cannot use it on older versions of Android. Here is a sample project demonstrating how to use it on newer versions of Android while safely avoiding it on older versions of Android.