Page 1 of 1
Android - open native sized display
Posted: Sun May 22, 2016 10:03 am
by rednight
So how can I open a display of native size and determine what that size is?
Re: Android - open native sized display
Posted: Sun May 22, 2016 11:22 am
by airsoftsoftwair
What about
Code: Select all
w = GetAttribute(#DISPLAY, 0, #ATTRHOSTWIDTH)
h = GetAttribute(#DISPLAY, 0, #ATTRHOSTHEIGHT)
ChangeDisplaySize(w, h)
Alternatively, you could also create a BGPic of that size and show it using DisplayBGPic().
Re: Android - open native sized display
Posted: Sun May 22, 2016 9:53 pm
by rednight
That works fine on computer, but doesn't seem to work on Android. Isn't ChangeDisplay on the list of functions that don't work with Droid?
Re: Android - open native sized display
Posted: Sun May 22, 2016 11:31 pm
by airsoftsoftwair
Looking at the source code, ChangeDisplaySize() should work on Android. What behaviour do you get? Does it fail with an error message?
An alternative could be to use a BGPic:
Code: Select all
w = GetAttribute(#DISPLAY, 0, #ATTRHOSTWIDTH)
h = GetAttribute(#DISPLAY, 0, #ATTRHOSTHEIGHT)
CreateBGPic(1, w, h)
DisplayBGPic(1)
Re: Android - open native sized display
Posted: Mon May 23, 2016 6:06 am
by rednight
I figured it out -- it actually did work just the title was covering up the textout with the screen dimedndions in it.