Other Android/iOS app

GaNdAlF89

Active Member
Licensed User
Longtime User
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?
 

Cableguy

Expert
Licensed User
Longtime User
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.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
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
 
Upvote 0

GaNdAlF89

Active Member
Licensed User
Longtime User
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
Thanks, but this means that I have to create two different projects (one in B4A and B4i)?
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
YES!
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
Thanks, but this means that I have to create two different projects (one in B4A and B4i)?

NO!

(sorry @Cableguy :))

see this:

B4A to B4I

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
 
Upvote 0
Top