Full Screen fill problem on android after rotation

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
rblackmore245
Posts: 67
Joined: Fri Jun 12, 2015 9:42 am

Full Screen fill problem on android after rotation

Post 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?
MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Full Screen fill problem on android after rotation

Post by MaxV »

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
rblackmore245
Posts: 67
Joined: Fri Jun 12, 2015 9:42 am

Re: Full Screen fill problem on android after rotation

Post 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
MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Full Screen fill problem on android after rotation

Post 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.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
rblackmore245
Posts: 67
Joined: Fri Jun 12, 2015 9:42 am

Re: Full Screen fill problem on android after rotation

Post 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.
MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Full Screen fill problem on android after rotation

Post 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
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
rblackmore245
Posts: 67
Joined: Fri Jun 12, 2015 9:42 am

Re: Full Screen fill problem on android after rotation

Post 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
Post Reply