Android Question CustomBuildAction and B4A 64bit

janderkan

Well-Known Member
Licensed User
Longtime User
I have an App where I use CustomBuildAction to create a Strings.db file from an Excel file (Localizator) at compile time.
In debug mode everything works fine but different errors in release mode.
First I assumed that it was a runtimepermission thing but no luck solving the errrors. (DB not found, Table not found)
When I also saw Strings.db not found at compile time I tried to comment CustomBuildAction out when I was compiling in release.
Now it worked OK.
I guess that the CustomBuildAction is not finished before compiling,
that will exxplain the errors :
String.db is not in Files folder or Table in String.db is does not exist.

Is there a CustomBuildAction that will pause compiling ?
 

janderkan

Well-Known Member
Licensed User
Longtime User
I have this in B4XMainPage

B4X:
#Region Shared Files
#CustomBuildAction: 1, c:\windows\system32\cmd.exe,/c C:\2Work\1C\B4J\Tools\B4XLocalizator\run.exe C:\2Work\1C\B4X\1Click\1ClickApp\strings_futedoapp.xlsx C:\2Work\1C\B4X\1Click\1ClickApp\Shared_Files\strings.db
#CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files"
'Ctrl + click to sync files: ide://run?file=%WINDIR%\System32\Robocopy.exe&args=..\..\Shared+Files&args=..\Files&FilesSync=True
#End Region

When I run the project the first line is executed and a new strings.db is created.
The second line is also executed and all the files is copied, except strings.db !
when I Ctrl + click all the files is copied, including strings.db !
So it looks like B4XLocalizator is not finished when Robocopy is started.
Is it possible to make a delay between the CustomBuildActions ?
 
Last edited:
Upvote 0
Top