Convert iOS Xojo project to Android project

Hi

I’m looking for the steps to convert my iOS Xojo 2025 mobile project to an Android project. If anyone has done this could they share their process? Any tips or tricks would be great to know.

I have Android Studio installed and test Android apps are running ok.

I have done it once so far. And it wasn’t easy.

First, copy all classes and modules from your iOS project to a blank Android project.
But don’t copy MobileScreens.

Try running your project. If you don’t have any errors, you are very lucky.
If you have a few errors, fix them.

If you have hundreds of errors or even compiler errors, it can be easier to start with a new blank project, then copy over classes/groups of classes and modules one by one. Then fix errors each time you add more items. Good luck!

After that, you’ll need to redesign all your MobileScreens and Containers.
One thing to keep in mind is that Android doesn’t have an out of the box method to keep a control (such as a button) in the center of the screen.
This was fairly easy to do on iOS with constraints. On Android, you’ll need to write some code to re-align controls, depending on the size of the control and size of the Screen.

If you are using iOSDesignExtensions in your iOS app, I recommend using the Android’s equivalent named AndroidDesignExtensions.

5 Likes

Thanks Jeremie, that’s very helpful.

I do a lot of specific control constraints, so that will be interesting.
I am using iOSDesignExtensions, so I’ll make sure to take advantage of AndroidDesignExtensions.

Ok I’m getting through this step by step, but not sure how to handle all the custom tables/cells. How do I convert the datasources?