Dim DocumentPicker As DocumentPickerViewController
DocumentPicker.InitializeImport("picker", Array("public.image"))
DocumentPicker.Show(B4XPages.GetNativeParent(Me), xlbl_MiddleButton)
Wait For Picker_Complete (Success As Boolean, URLs As List)
Wait For (File.CopyAsync(URLs.Get(0), "",File.DirLibrary, "myimage.png")) Complete (Success As Boolean)