Android Question Initialize and Initialize2 for Camera

PhilipBrown

Active Member
Licensed User
Longtime User
I am trying to check that the following bolded documentation of the Camera library are correct for the forthcoming book:

Initialize (Panel As ViewGroup, EventName As String)
Initializes the rear-facing camera. If the device only has one camera which is front-facing, use Initialize2.
Panel - The preview images will be displayed on the panel.
EventName - Events subs prefix.
The Ready event will be raised when the camera has finished opening.

Initialize2 (Panel As ViewGroup, EventName As String, CameraId As Int)
Same as Initialize, but you can specify which camera to use.
CameraId - the Id of the hardware camera. If there is only one camera on the device, its Id is 0. If there are two cameras, use 0 for the rear-facing camera, 1 for the front-facing one.
The Ready event will be raised when the camera has finished opening.
This method is only available from Android 2.3+.
 
Top