Android Question separate folder for additional user data?

zzarazzio

New Member
Licensed User
Hi everyone

I've been playing with B4A for about a month and I've already made 3 apps for the sake of learning

For the latest one I have a series of 34 pics to show, one at a time.
I have put them all in the Files folder and the app works fine but I'd rather keep them in a separate folder.
Unfortunately though, I haven't been able to reference an external folder correctly in the code, so

imgPic.Bitmap=LoadBitmap(File.DirAssets,"/MyGraphs/" & PicName & ".jpg")
won't work.
I would also like to add an additional folder with mp3 files and I'd like to keep everything separate, in the place it belongs…
Any hints?
Thanks!
Zzarazzio
 

ronell

Well-Known Member
Licensed User
Longtime User
you can save the files in the phones storage then load it in the app

B4X:
dim bmp as BitmapDrawable
bmp.Initialize(LoadBitmap(File.DirRootExternal & "/images","myimage.jpg"))
 
Upvote 0
Top