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!
Hi everyone,
I would like to know is there any way to force to change the orientation (ex. from portrait to landscape) on mobile devices without physical rotation.
One way is to just throw up a card that has everything rotated sideways on it...I know it's not the ideal solution, but you could have a substack set up that way...
Thank you all for the suggested solutions. We have tried what you suggested but again have the same problem.
So let me describe the problem once again. The portrait and landscape views work perfectly on IOS devices but we have a problem on Android. The screen doesn't rotate automatically, and on some devices we need to just tilt the device but on others we have to tilt and also shake it.
Please go through this link to download samples: livecode file and .apk file which I've tested on both Android and IOS devices.
yes i want to change it without rotating the device.
I have sat thinking about this for a while and cannot think of a scenario where I would want to do this !... To change the layout from portrait to landscape, without changing the orientation would just chop things off.. nothing would fit.. ?!*&%
On IOS the layout changes from portrait to landscape immediately so that you don't even notice it. But on Android the screen view doesn't change without shaking, we can only see half of the screen, unless we rotate the phone and shake it.
Hi Armenhui - My most recent Android apps have all been locked to Portrait/Portrait Upside-down but I've never experienced problems with orientation change in Android in the past. Just to be sure I've done a test with LC 7.1.1(rc4) on an Android device (a Nexus 4) and orientation changed smoothly without issues - and certainly no shaking...
Thank you for your reply, I tested the app with Livecode 7.1.1 on Android, Lenovo S90. It works more smoothly. there was no need to shake the phone, but again I had to tilt the phone as it didn't change the orientation automatically like it does on IOS.