I have just noticed that I mixed 2 things together in this post, (1) taking a picture and (2) selecting a picture from the galery. Sorry for that. The Intent-based camera sample was indeed a nice solution for the 1st issue, but my post originally was created for the selection of a picture from the galery in B4i. So can we revert to this issue?
I have made this in the past using the "ALAssets" library that I found on this forum, but a lot of users reported problems with that. So I want to do this with the camera SelectFromPhotoLibrary function but I cannot get this to work. I use:
Dim p As Page = B4XPages.GetNativeParent(B4XPages.MainPage.Page_GaleryB4i)
Camera1.Initialize("Camera1", p)
Camera1.SelectFromPhotoLibrary(Sender, Camera1.TYPE_ALL)
but all I get is a black screen.