Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 757

Getting Started with LiveCode - Complete Beginners • Re: Changing a project from windows to android

$
0
0
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

Statistics: Posted by Klaus — Tue Dec 10, 2024 3:39 pm



Viewing all articles
Browse latest Browse all 757

Trending Articles