Android - open native sized display
Android - open native sized display
So how can I open a display of native size and determine what that size is?
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Android - open native sized display
What about
Alternatively, you could also create a BGPic of that size and show it using DisplayBGPic().
Code: Select all
w = GetAttribute(#DISPLAY, 0, #ATTRHOSTWIDTH)
h = GetAttribute(#DISPLAY, 0, #ATTRHOSTHEIGHT)
ChangeDisplaySize(w, h)
Re: Android - open native sized display
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?
- airsoftsoftwair
- Posts: 5443
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Android - open native sized display
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:
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
I figured it out -- it actually did work just the title was covering up the textout with the screen dimedndions in it.