Android Question Onfocus Camex

Croïd

Active Member
Licensed User
Longtime User
HI, I use this code to divert the focus function but on some devices, but I have a crash !

Is there another solution?

B4X:
Try
    If camera1.GetSupportedFocusModes.IndexOf("auto") > -1 Then
        camera1.FocusAndTakePicture
    Else
        camera1.TakePicture
        End If
    Catch
        Log(LastException)
    End Try
 

Attachments

  • crash.txt
    1.2 KB · Views: 399

Croïd

Active Member
Licensed User
Longtime User

Thank you Erel, I will watch and I will keep you informed
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…