Full Screen fill problem on android after rotation

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

Moderators: Klaus, FourthWorld, heatherlaine, 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 » Thu Oct 15, 2015 2:55 pm

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: 1577
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: Full Screen fill problem on android after rotation

Post by MaxV » Fri Oct 23, 2015 2:43 pm

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 » Fri Oct 30, 2015 4:31 pm

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: 1577
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: Full Screen fill problem on android after rotation

Post by MaxV » Fri Oct 30, 2015 4:54 pm

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 » Sun Nov 01, 2015 9:05 pm

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: 1577
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: Full Screen fill problem on android after rotation

Post by MaxV » Wed Nov 04, 2015 5:55 pm

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 » Wed Nov 18, 2015 12:13 pm

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

Return to “Android Deployment”