Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim cam As ParaCamera
Dim builder As CameraBuilder
Private Button1 As Button
Private ImageView1 As ImageView
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout1")
cam.Initialize("")
builder = cam.builder
builder.setCompression(100).setDirectory("TestImages").setImageFormat("png").setName("huhu")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
If cam.CameraBitmapPath <> "" Then
Log(cam.CameraBitmapPath)
Log(cam.resizeAndGetCameraBitmapPath(1024))
ImageView1.Bitmap = cam.CameraBitmap
End If
End Sub
Sub Button1_Click
cam.takePicture
End Sub