Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Android / [SOLVED] Screen Issue On Newer Android Devices With No Physical Buttons - Need Help Fixing It!

Author
Message
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 23rd Sep 2020 16:57 Edited at: 23rd Sep 2020 20:16
Hi,

I have a very old Android smartphone and very old Android tablet here for testing.
I had the opportunity to test our AppGameKit games on a newer Android smartphone.
The newer Android smartphone has no physical buttons.

In our "LettersFall" Android game we have clickable icons on the very bottom.
Problem is newer Android smartphone device's virtual buttons on bottom overlap our game's buttons.
As a result our game does not function properly.

How do we fix the above screen issue on newer Android devices with no physical buttons?
Let us know, thanks!

Jesse

JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com

Attachments

Login to view attachments

The author of this post has marked a post as an answer.

Go to answer

JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 23rd Sep 2020 22:15
Hi,

We re-released the three AppGameKit Android games affected by above issue using a quick fix below:



The "+40" adds empty space at the bottom of Android device's screen.
It's not a perfect fix, please help us fix above issue properly.

Thanks!

Jesse
JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 24th Sep 2020 01:39 Edited at: 24th Sep 2020 01:42
since i've started sharing APKs, i should look into this myself.

i think GetDeviceType() is a good plaece to start, followed by a list of Android models that have on-screen controls vs physical buttons.

Another: SetImmersiveMode() tho it's generally suggested to not take any control away from the OS for such things.

at least, for now, i'll avoid using any of the bottom space for UI (vs your temp fix of limiting the screen).

or, do the newer models shove your app out of the way/squeeze it automatically?
[My Itch.io Home] [#LowRezJamAGK2020]
[AGK Resource Directory] [TGC @ GitHub]
[CODE lang=AGK] YOUR CODE HERE [/CODE]
[VIDEO=youtube] VIDEO ID [/VIDEO]
[Google Forum Search]
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 24th Sep 2020 18:43
Hi,

Thanks for the reply...

Newer Android devices with no physical button overlay the home, back, etc. on the bottom of the device screen.
The application is not resized for the above.
Also devices with front facing camera built into the LED screen do not show the application in that area.
It's all a bit confusing.

We will stick with our current solution listed above.
Thanks!

Jesse
JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com
JonEnstrom
3
Years of Service
User Offline
Joined: 27th Apr 2020
Location:
Posted: 21st Oct 2020 17:10
SetImmersiveMode() solves the problem you are describing, I use it regularly to hide the OS buttons (swipe up to reveal them).

The other issue I think you are talking about is the "hole punch" camera? Or phones with a water drop (curved drop down) in the top of the lcd for the camera? I have a phone with the waterdrop display for the camera and the app doesn't run in that space of the screen (the whole top 1/4 inch of the phone). Not sure about hole punch though.
JeZxLee
7
Years of Service
User Offline
Joined: 15th Mar 2017
Location: Long Island, New York, United States, Earth
Posted: 29th Oct 2020 16:43 Edited at: 29th Oct 2020 17:09
This post has been marked by the post author as the answer.
Sorry...

Adding "SetImmersiveMode(1)" solved the issue above.

Be sure to check periodically "GetDeviceWidth()" & "GetDeviceHeight()"
for changes and re enable "SetImmersiveMode()" when screen dimensions change.

Thanks!

Jesse
JeZxLee
Fallen Angel Software
Video Game Design Studio
http://www.FallenAngelSoftware.com

Login to post a reply

Server time is: 2024-03-28 19:21:45
Your offset time is: 2024-03-28 19:21:45