Full Screen fill problem on android after rotation
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 67
- Joined: Fri Jun 12, 2015 9:42 am
Full Screen fill problem on android after rotation
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?
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
Does rotating the device correct the problem?
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
-
- Posts: 67
- Joined: Fri Jun 12, 2015 9:42 am
Re: Full Screen fill problem on android after rotation
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
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.
You should put there all code to resize your app when the screen rotate.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
-
- Posts: 67
- Joined: Fri Jun 12, 2015 9:42 am
Re: Full Screen fill problem on android after rotation
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.
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
This could not prevent the app to rotate. Did you try this?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.
Code: Select all
on PreOpenStack
mobileSetAllowedOrientations "landscape left"
End PreOpenStack
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
-
- Posts: 67
- Joined: Fri Jun 12, 2015 9:42 am
Re: Full Screen fill problem on android after rotation
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