Usage:
B4X:
'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
End Sub
Sub Activity_Create(FirstTime As Boolean)
Dim cam As EZcamera
cam.Initialize("Cam")
cam.TakePicture(File.DirRootExternal, "TestPic.jpg")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Cam_PictureTaken (FileSaved As Boolean)
If FileSaved = True Then ToastMessageShow("Picture Saved", True)
End Sub