So,I write the code with b4X IDE for both side by one times ?
The intention is that you develop the program code in the B4J IDE. You should use B4X code as much as possible.
When you have (partially) developed the code, you can transfer the B4X code from the B4J environment to the Android and IOS IDE with a mouse click.
So,I write the code with b4X IDE for both side by one times ?
Yes, only a very small part of the B4J code has to fix in the other IDE by using so much as possible B4X code. Next thing to do is to choose the necessary libraries in the other IDE first and then copy the screen layouts from the B4J to B4A/B4I. Apart from the different screen sizes, you hardly have to adjust anything in your code.
Then you probably run into the minor differences in the non-B4X program code. You can solve this by applying IDE conditional compilation (#IF #ELSE B4J / B4A) and transferring the found solution back to the B4J IDE program code.
Otherwise , write the code B4A and B4i IDE separately.?
It's a matter of getting used to developing and testing primarily in the B4J, and then testing in B4A/B4I with minimal adjustments.
I can now use and exchange the things like the HexMenu, SQL databases and AES encryption in B4J and B4A just fine.
Great solution working with B4XPages