zzarazzio New Member Licensed User Oct 4, 2017 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Oct 5, 2017 #2 See this post: https://www.b4x.com/android/forum/threads/organizing-dirassets.26789/#post-154946 Upvote 0
R ronell Well-Known Member Licensed User Longtime User Oct 5, 2017 #3 you can save the files in the phones storage then load it in the app Code: Copy dim bmp as BitmapDrawable bmp.Initialize(LoadBitmap(File.DirRootExternal & "/images","myimage.jpg")) Upvote 0
you can save the files in the phones storage then load it in the app Code: Copy dim bmp as BitmapDrawable bmp.Initialize(LoadBitmap(File.DirRootExternal & "/images","myimage.jpg"))