C CoreTech4k New Member Licensed User Mar 10, 2017 #1 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.
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.
eurojam Well-Known Member Licensed User Longtime User Mar 10, 2017 #2 may be you can start with this example. https://www.b4x.com/android/forum/threads/scrollview-example.6612 Upvote 0
may be you can start with this example. https://www.b4x.com/android/forum/threads/scrollview-example.6612
C CoreTech4k New Member Licensed User Mar 10, 2017 #3 hi eurojam thanks for the reply, I managed to use the scrollView just like in the sample code and implement it with the codes: Code: Copy 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
hi eurojam thanks for the reply, I managed to use the scrollView just like in the sample code and implement it with the codes: Code: Copy 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.