iOS Question Can't select an image from photo folder

DickD

Active Member
Licensed User
I'm trying to get a photo from the built-in folder and insert it into a layout ImageView using the code below. I get the error message Signal Handler 6 before ever getting to the folder.

B4X:
Dim cam as Camera
Dim ImageView1 as ImageView
...
Sub InitCamera
cam.Initialize("cam", pg)
End Sub

Sub PickPicture_Click
InitCamera
cam.SelectFromSavedPhotos(Sender, cam.TYPE_ALL) ' error occurs on this line
End Sub

Sub Cam_Complete (Success As Boolean, Image As Bitmap, VideoPath As String)
If Success Then
If Image.IsInitialized Then
ImageView1.Bitmap = Image
End If
End If
End Sub
 
Top