Android Question how to add cutom folder to assets

mzsoft

Member
hello
In my android project I have folder name .pic
I check the apk and I don't see the .pic folder, I think it's because of the dot at the beginning of the folder name.i cant change folder name.
Is it possible to automatically add this folder to the assets folder ?
i use this
B4X:
   #CustomBuildAction: 1, c:\windows\system32\robocopy.exe, ..\Files\.pic ..\Objects\bin\extra\assets\.pic /MIR

copy is ok but in apk not shown.
 

mzsoft

Member
But in a Java project that I tested, every folder that was in assets was copied into apk. I can't use zip. The file must be in assets. And this folder is not accessible for changes in Android.
Maybe I need to change the apk file after building and sign it again.
 
Upvote 0

mzsoft

Member
i checked java project .it has this code in build.gradle

B4X:
 aaptOptions {
            ignoreAssetsPattern "!.svn:!.git:!.gitignore:!.ds_store:!*.scc:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
        }
 
Upvote 0
Top