Android Question Is it crazy? Convert b4a to ios

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
Hi
Is it a crazy idea to ask if it is possible to convert or transfer an android project to ios?

Doable?
How complex?

Thanks
 

mcqueccu

Well-Known Member
Licensed User
Longtime User
It's not crazy but smooth.

If its already a B4Xpages app, then you only need to modify a few items BUT if it's an activity-based app, you will have to make some serious conversions.

I will advise you to convert it to B4Xpages and read on it before you start.
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
Thanks for that quick reply what is the easiest and fastest way to convert an activity based app to b4xpages?
 
Upvote 0

udg

Expert
Licensed User
Longtime User
A project based on B4xPages and using mostly xui views and b4x components is relatively simple to port from one platform to the other.
Let"s say that a good 80/90% of code remains untouched.
Layouts are an area to work on
Then a few quirks specific to each platform
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
A project based on B4xPages and using mostly xui views and b4x components is relatively simple to port from one platform to the other.
Let"s say that a good 80/90% of code remains untouched.
Layouts are an area to work on
Then a few quirks specific to each platform
I see, thanks
It is not straight forward
I will need to give it another thought if it worth the work or maybe to consider going to web app that will work seemless on all platforms
Thank you guys for the input
 
Upvote 0

mcqueccu

Well-Known Member
Licensed User
Longtime User
Thanks for that quick reply what is the easiest and fastest way to convert an activity based app to b4xpages?
Here is how I do it.
1. Create a new B4XPages project
2. Add all the libraries you used in the previous project (Eg. B4A)
3. Add Xui and XUI Views library if its not already selected.
4. Start copying your code and layout one by one from the previous project to the new one.
**You can test each page after the code transfer and make sure its still working before moving on to another page**
5. Create new B4Xpages for the different modules you have in the previous project.
**Make sure to Select ADD TO PARENT FOLDER for modules that will be shared by all platforms**
6. When done, move to B4i, all your code should be synced there.
7. Add all libraries that are needed, DONT worry about the B4A specific ones. If its not available to B4i you will get something different which you can handle with Conditional directive . **Conditional Directives like #IF B4A...... #IF B4I for unique things in respective platforms**
8. Create new layouts and copy from B4A to B4i
9. DONT CREATE NEW PAGES...Click Project to Add EXISTING MODULES from the Parent Folder. Select Link Relative path


10. Work is done.
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
Here is how I do it.
1. Create a new B4XPages project
2. Add all the libraries you used in the previous project (Eg. B4A)
3. Add Xui and XUI Views library if its not already selected.
4. Start copying your code and layout one by one from the previous project to the new one.
**You can test each page after the code transfer and make sure its still working before moving on to another page**
5. Create new B4Xpages for the different modules you have in the previous project.
**Make sure to Select ADD TO PARENT FOLDER for modules that will be shared by all platforms**
6. When done, move to B4i, all your code should be synced there.
7. Add all libraries that are needed, DONT worry about the B4A specific ones. If its not available to B4i you will get something different which you can handle with Conditional directive . **Conditional Directives like #IF B4A...... #IF B4I for unique things in respective platforms**
8. Create new layouts and copy from B4A to B4i
9. DONT CREATE NEW PAGES...Click Project to Add EXISTING MODULES from the Parent Folder. Select Link Relative path


10. Work is done.
Wow, this is like a cake recipe, i like it
Thanks, I'll give it a try
 
Upvote 0
Top