DonManfred Expert Licensed User Longtime User Jul 2, 2013 #1 Hallo everybody, first please excuse my bad english In the Forum i found an Code-Snippet Code: Copy Dim i As Intent i.Initialize(i.ACTION_PICK, "") i.SetType("image/*") StartActivity(i) which pops up an intent to select an image from the Gallery (and from some other places) like in Whatsapp when you select an Attachment for an Chatsession. Thats really nice and i want to use this "Feature" in my app. But: How can i get rid of the selected Image (path and name of Imagefile) to use the image then in my App? Maybe for sending it as Attachment in an email oder uploading this image to our server or or or... How do i get the selected image? Many thanx in advance for any helpful answers Regards from Germany, Manfred
Hallo everybody, first please excuse my bad english In the Forum i found an Code-Snippet Code: Copy Dim i As Intent i.Initialize(i.ACTION_PICK, "") i.SetType("image/*") StartActivity(i) which pops up an intent to select an image from the Gallery (and from some other places) like in Whatsapp when you select an Attachment for an Chatsession. Thats really nice and i want to use this "Feature" in my app. But: How can i get rid of the selected Image (path and name of Imagefile) to use the image then in my App? Maybe for sending it as Attachment in an email oder uploading this image to our server or or or... How do i get the selected image? Many thanx in advance for any helpful answers Regards from Germany, Manfred
Erel B4X founder Staff member Licensed User Longtime User Jul 3, 2013 #2 You should use ContentChooser from the Phone library. Upvote 0
DonManfred Expert Licensed User Longtime User Jul 3, 2013 #3 Erel said: You should use ContentChooser from the Phone library. Click to expand... :sign0161: That´s it... Thanx a lot for your help! :sign0060: I still have a lot to learn on B4A :sign0104: Best regards, Manfred Upvote 0
Erel said: You should use ContentChooser from the Phone library. Click to expand... :sign0161: That´s it... Thanx a lot for your help! :sign0060: I still have a lot to learn on B4A :sign0104: Best regards, Manfred