I am asking about loading image from my mobile photos? ...... i just checked on help but all loading ways is by only Loadbitmap(File.DirAssets,"anyimage.bmp")......the image should be stored inside File folder in project file...........
I am making some ImageView objects in the layout by designer...........and i want just when i click the image view load the image from mobile....like browsing for the location of image
The photos I take using my device's camera as stored in File.DirRootExternal/DCIM/Camera folder. Yours, probably the same way. You can then do this:
Dim imageview1 as Imageview 'in Globals
B4X:
Sub imageview1_Click
imageview1.SetBackgroundImage(LoadBitmap(File.DirRootExternal & "/DCIM/Camera","photoname.jpg"))
End Sub
There is no standard path to sd cards. There is a standard path to the primary external storage which you can retrieve with File.DirRootExternal as posted above.