Cannot figure out what the problem is here:
Private Sub SelectPicture As ResumableSub
'Dim img As ImageView ' now up there in the Class_Globals -- no difference
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
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...
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...