Hi to all!! I have to develop a mobile app, both for Android and iOS.
My question is: can I develop an app writing the code just once? I mean something that Apache Cordova (PhoneGap) does.
I need a way to avoid to create two different projects. Solutions?
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.
You may have a look at chapter 11 Differences B4i <> B4A in B4i Beginner's Guide.
And you may compare chapter 9 Process and Activity life cycle in he B4A Beginner's Guide with chapter 7 Process life cycle in the B4i Beginner's Guide
You may have a look at chapter 11 Differences B4i <> B4A in B4i Beginner's Guide.
And you may compare chapter 9 Process and Activity life cycle in he B4A Beginner's Guide with chapter 7 Process life cycle in the B4i Beginner's Guide
you can create one code but try not to use libs that are not supported on both platforms.
for simple+ apps it should be possible to create 1 code and run in on both platforms (b4a + b4i)
B4X:
#If B4A
'b4a specific code
#End If
#If B4i
'b4i specific code
#End If