[wrong forum sorry hopefully Erel will move it to questions]
Hey guys lately i have been working on some project which needs a lot of translation in the res folder and i was so tired of removing the Readonly for the strings.xml but after a couple researches in the formus i found a good way to avoid all this using CustomBuildAction which is a very useful thing to have you can read more about it HERE
in short
first line: code will be parsed then it will mark the res folder as readonly
second line : comes the amazing second line which re-marks your res folder as readable after the APK was installed so you don't have to mark files again.
I don't know why this is not the default behavior of B4A in the first place but i guess there's a good reason behind it . have fun
Hey guys lately i have been working on some project which needs a lot of translation in the res folder and i was so tired of removing the Readonly for the strings.xml but after a couple researches in the formus i found a good way to avoid all this using CustomBuildAction which is a very useful thing to have you can read more about it HERE
in short
B4X:
#CustomBuildAction: 1, c:\windows\system32\attrib.exe, +r res\*.* /s
#CustomBuildAction: 5, c:\windows\system32\attrib.exe, -r res\*.* /s
first line: code will be parsed then it will mark the res folder as readonly
second line : comes the amazing second line which re-marks your res folder as readable after the APK was installed so you don't have to mark files again.
I don't know why this is not the default behavior of B4A in the first place but i guess there's a good reason behind it . have fun
Last edited: