MOST of the Code in a B4X project can be shared between IDe's (B4A, B4i and B4J) BUT, they are different SO's ans thus have different life cycles for their apps.
You can create a Code Module to execute functions that will be common to the IDE's you target, BUT, graphical and GUI management will still have to be addressed in each IDE.