Android Question [Help]Open image using file dialog

CoreTech4k

New Member
Licensed User
Hi, sorry if my question is too newbie, I been reading and searching since yesterday on how I can implement to get image from internal storage and save it to sqlite.

I already know how to insert and read image from sqlite.

What I want is to let the user select photo for their profile (in their sdcard or other loc).

i tried fileselect but im not able to do it.

A little help may do,

Thanks in advance.
 

CoreTech4k

New Member
Licensed User
hi eurojam thanks for the reply, I managed to use the scrollView just like in the sample code and implement it with the codes:

B4X:
imagesFolder = File.DirRootExternal & "/Images"
    If File.Exists(imagesFolder, "") = False Then
        ToastMessageShow("Images folder not found: " & CRLF & imagesFolder, True)
        Return
    End If
    files = File.ListFiles(imagesFolder) 'get all files in this folder

iam now able to load it to the imageview as image profile, thanks a lot. And still reading more to find the best way where the user can freely select his file on the sdcard or other location.

:)
 
Upvote 0
Top