Android Question How to choose image 'From Image Album' and View in ImageView

karmba_a

Member
Licensed User
Longtime User
Hello everyone,

I have ImageView in my app, But I don't know how to choose an image 'From Image Album' and then put it inside the ImageView.

Thanks in advavnce.
 

ronell

Well-Known Member
Licensed User
Longtime User
copy the image to you app folder then rename it, then use it on your imageview

B4X:
 File.Copy(File.DirInternal, "image1.png", File.DirRootExternal, "copiedimage.png") '<- copy the image first

bmp.Initialize(LoadBitmap(File.DirAssets,"copiedimage.png")) '<- initialize the bitmap

imageview.initialize(LoadBitmap(File.DirAssets,"mainbackground.jpg")) '<-use it in imageview
 
Upvote 0
Top