Changing a project from windows to android

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
CAsba
Posts: 423
Joined: Fri Sep 30, 2022 12:11 pm

Changing a project from windows to android

Post by CAsba » Tue Dec 10, 2024 8:30 am

Hi
I have a project that I've been making on the windows platform, but I think it will be more appropriately based on android. I have no idea how to achieve this; is it a long and tedious, or difficult undertaking ? How would I begin to know what to do ? Has anyone done this before ?
Hope someone can help.

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Changing a project from windows to android

Post by Klaus » Tue Dec 10, 2024 3:39 pm

Hi CAsba,

hm, where to start?
OK, some very basic things to consider:
1. Mobile <> Desktop, so you cannot use:
Drag'n'Drop
Ask/Answer file
Ask/Answer folder
specialfolderpath("desktop") -> There is no "desktop" on mobile!

2. LC does not "re-"layout your app when the user switches from Portrait to Landscape orientation or vice-versa. This needs to be scripted by you!
So maybe ONE of these modes will suffice for your app and you you can "hardcoce" this with: mobileAllowedOrientations()

3. The user cannot resize a window on mobile, so you need to define the stack dimensions in the correct aspect ratio of your targets devices.
The stack will however be scaled to fit the targets screen dimensions.

4. The ONLY folder on mobile where we have write permission is: specialfolderpath("documents")
This is not the same folder as on the desktop, but a small area inside of your app package where we can store things.
So if you add one or more files that your app or your users need to modify (and SAVE) they need to be copied to that folder and then opened from and saved there.

Hope that helps to get you started.


Best

Klaus

Post Reply