Page 1 of 1
Full Screen fill problem on android after rotation
Posted: Thu Oct 15, 2015 2:55 pm
by rblackmore245
Has anyone seen this happen and know of a way around this ?
https://www.youtube.com/watch?v=XTiYWZs9erk
It only happens when the device is locked in landscape then rotated to portrait in the lock screen, it looks like livecode is not refreshing the screen dimensions.
Just wondering if anyone has a hack to get around this problem in the livecode android engine?
Re: Full Screen fill problem on android after rotation
Posted: Fri Oct 23, 2015 2:43 pm
by MaxV
Does rotating the device correct the problem?
Re: Full Screen fill problem on android after rotation
Posted: Fri Oct 30, 2015 4:31 pm
by rblackmore245
No rotating the screen after it has been clipped does not fix the issue, I think it may be a bug reading up online about a similar issue someone else has been having
Re: Full Screen fill problem on android after rotation
Posted: Fri Oct 30, 2015 4:54 pm
by MaxV
Please note that at the present the geometry manager doesn't work on Android, so did you put some code on the orientationChanged message?
You should put there all code to resize your app when the screen rotate.
Re: Full Screen fill problem on android after rotation
Posted: Sun Nov 01, 2015 9:05 pm
by rblackmore245
Thanks for your reply.
I am currently setting the fullscreenmode to "exactFit" and setting the orientation to landscape in the "Stand alone settings" so the app is fixed in landscape.
The problem only arises when the tablet times out and enters the lockscreen then the user rotates the screen to portrait unlocks the tablet, the app which is running in the background still, seems to attempt to fit the content to portrait and crops the content as seen in the video, which I cannot seem to fix with any code in the orientationChanged.
Re: Full Screen fill problem on android after rotation
Posted: Wed Nov 04, 2015 5:55 pm
by MaxV
I am currently setting the fullscreenmode to "exactFit" and setting the orientation to landscape in the "Stand alone settings" so the app is fixed in landscape.
This could not prevent the app to rotate. Did you try this?
Code: Select all
on PreOpenStack
mobileSetAllowedOrientations "landscape left"
End PreOpenStack
Re: Full Screen fill problem on android after rotation
Posted: Wed Nov 18, 2015 12:13 pm
by rblackmore245
Yes I've tried that but it appears this seems to be ignored when the tablet goes into the lockscreen and when the tablet it unlocked with the app running in the foreground it crops the livecode canvas