Android Question CameraEx "Focus + TP" only saves pic with rear camera

Startup

Active Member
Licensed User
Longtime User
CameraEx "Take Picture" button saves picture with both front and rear cameras. "Focus + TP" button only saves picture with rear camera. Why is that?
 

Startup

Active Member
Licensed User
Longtime User
I assume it is as I get this in log [auto, infinity, macro, continuous-video, continuous-picture]
 
Upvote 0

Startup

Active Member
Licensed User
Longtime User
No the log message ([auto, infinity, macro, continuous-video, continuous-picture]) just shows for the rear camera.
 
Upvote 0

Startup

Active Member
Licensed User
Longtime User
This means that auto focus is not supported.

OK. I want to have just one button which takes the picture whether autofocus is supported or not. So I changed the Sub btnTakePicture_Click call to camEx.GetSupportedFocusModes and added to the CamEx sub which now reads as follows:

Public Sub GetSupportedFocusModes As List
r.target = parameters
Dim fm As List
fm.initialize
fm=r.RunMethod("getSupportedFocusModes")
If fm.Get(0)="auto" Then
FocusAndTakePicture
Else
TakePicture
End If
Return r.RunMethod("getSupportedFocusModes")
End Sub

So now there is just one button "Take Picture" button which works for both cameras - rear with autofocus and front without autofocus.
Thanks!
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…