Hi, using the example given by @Erel , I just add:
camEx.TakePicture in StopCamera like that :
B4X:
Private Sub StopCamera
Capturing = False
btnStartStop.Text = "Start"
' here Add camEx.TakePicture
camEx.TakePicture
pnlPreview.Visible = False
#if B4A
If...