I added camera functionality to my app using Advanced Camera Library back when my tablet was running HoneyComb. When I updated to ICS I started seeing some weird stuff.
When this button is pressed, the system freezes for roughly 30 - 40 seconds. Eventually the program will just resume, but this is something I can't have in my app.
This button is used if the user wants to back out of my Camera view instead of taking a photo. If they instead take a photo, and my press my 'Save' button, everything is fine. Weirdest part is that the first thing the Save button does is call this close button routine, and there is no lag whatsoever. The lag only exists when THIS button is physically pressed and when 'camera.release' is present in the routine.
Any ideas?
B4X:
Sub btnCameraClose_Click
pnlCamera.Visible = True
pnlCameraImage.Visible = False
Camera1.Release
If btnCameraClose.Visible = False Then
Dim CloseCamera As Animation
CloseCamera.InitializeAlpha("CloseCamera", 1, 0)
CloseCamera.Duration = 500
CloseCamera.Start(pnlCameraControls)
Else
pnlCameraControls.Visible = False
End If
End Sub
When this button is pressed, the system freezes for roughly 30 - 40 seconds. Eventually the program will just resume, but this is something I can't have in my app.
This button is used if the user wants to back out of my Camera view instead of taking a photo. If they instead take a photo, and my press my 'Save' button, everything is fine. Weirdest part is that the first thing the Save button does is call this close button routine, and there is no lag whatsoever. The lag only exists when THIS button is physically pressed and when 'camera.release' is present in the routine.
Any ideas?