Use of the camera

Hi all,

I have a small question, but I realy don’t find the answer.
Does anyone have some example code of the use of the camera in software ag mobile designer ?

What I want is for the camera give a preview of the vision, when this is good then take a picture.
But for some reason the app always crashes.

Thanks in advance.