For expample, I load a bmp (in help directory) like this:
B4X:
Dim Bitmap1 As Bitmap
Dim imvT1 As ImageView
Bitmap1.Initialize(File.DirAssets,"help/t1.png") 'ignore
imvT1.Initialize("")
imvT1.Bitmap = Bitmap1
Activity.AddView(imvT1,262dip,51dip+90dip,3dip,145dip)
Loading it is not the problem, how do I add the file to the project so that it ends up in a subdirectory? I can't find a way to define the dir structure for DirAssets.
In your B4A project there is a 'Files' directory. You can make the structure there, and it will be included in the apk.
It wont show up in the Files tab in the IDE.
Yes, any files or directories in the FILES folder gets added to the APK, that directory should only contain the files pertaining to the app and nothing else.
Yes, any files or directories in the FILES folder gets added to the APK, that directory should only contain the files pertaining to the app and nothing else.
Is the folder lower case in the Files directory? "Icons" or "icons"? Use lowercase filenames. It definitely works.
Sometimes Windows plays tricks on you, so renaming doesnt work, you might have to delete the folder and recreate it.