Cannot figure out what the problem is here:
Private Sub SelectPicture As ResumableSub
LogSub("SelectPicture")
'Dim img As ImageView ' now up there in the Class_Globals -- no difference
img.Initialize("")
cc.Initialize("PhotoChoo")
cc.Show("image/*","The Title when...
Here is a ContentChooser Example project to choose a image at phone for use in a activity with image view. it works with B4A 9.x and Android 8.1
https://www.b4x.com/android/help/phone.html#contentchooser
https://wiki.selfhtml.org/wiki/MIME-Type/Übersicht
Hi,
I'm using "contentchooser" to get gallery photos
however this is a strange behavior in android 5.1 lolipop, the "thumbs" of the images is not appearing as attached image.
could someone tell me what I'm doing wrong?
my code is very simple
Dim ImageChooser As ContentChooser...
Hi all,
When using ContentChooser to select an image on phone gallery, Erel said on post : https://www.b4x.com/android/forum/threads/contentchooser-crash.60625/#post-382287
You don't need to copy the file. You can load it from its original location.
Use LoadBitmapSample instead of LoadBitmap...
I can run Erel's example just fine, but when I integrate it in my app, I get a java.lang.RuntimeException: Object should first be initialized (Cursor). error
I have attached a minimized version of my app with just the offending code. It picks an image from the chooser and scales it to best fit...
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.