I would like to know how I can open the image gallery by clicking on a imageView for the user to select one of them and the application for the path of the selected image
Dim Chooser As ContentChooser
Chooser.Initialize("chooser")
Chooser.Show("image/*", "Select an image")
B4X:
Sub chooser_Result (Success As Boolean, Dir As String, FileName As String)
If Success Then
ImageView1.Bitmap=LoadBitmap(Dir,FileName)
Else
ToastMessageShow("No image selected", True)
End If
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.