Hi Erel,
The APK works correctly before swapping in the new file, re-signing it and re-aligning it.
Re-sign is done by:
jarsigner -storepass myPassword -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my.keystore my.apk my
I have made some progress - it is the process of Zipping the files that seems to be the start of the problem.
If I zip all the files into an APK then the manifest.mf has the backslashes.
If I just add one file to the assets folder in the APK created by b4a, then after running jarsigner, the paths for the unaltered files are still all forward slashed correctly, and it is just the additional file that is backslashed.
So, I'm almost there. If I try and add "assets/myfile.xml" to the zip, then the zipper falls over.
I can add the file to the root of the zip, just as "myfile.xml", but then I can't load it in B4A as I can't see any parameter I can try other than File.DirAssets.
What does b4a use to do the zipping? if it is available as a standalone .exe then I can run it instead of the c# .net ZipArchive file extensions.
So, paths to try are:
(1) can I just drop the file I need into the root of the APK, and still access it from b4a
(2) b4a manages to zip the files correctly, can I run the same zipper?
Thanks for taking time to help me,
Greg