Android.Hardware.Camera.Reconnect Method
Reconnects to the camera service after another process used it.

Syntax

[Android.Runtime.Register("reconnect", "()V", "")]
public void Reconnect ()

Exceptions

TypeReason
Java.IO.IOExceptionif a connection cannot be re-established (for example, if the camera is still in use by another process).

Remarks

Reconnects to the camera service after another process used it. After Camera.Unlock is called, another process may use the camera; when the process is done, you must reconnect to the camera, which will re-acquire the lock and allow you to continue using the camera.

Since API level 14, camera is automatically locked for applications in Android.Media.MediaRecorder.Start. Applications can use the camera (ex: zoom) after recording starts. There is no need to call this after recording starts or stops.

If you are not recording video, you probably do not need this method.

[Android Documentation]

Requirements

Namespace: Android.Hardware
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8