Screen Size problem with Android

I got some feedback the screen size is not automatically fitting the devices screen like before.
They did change some things. Here is the info. I wonder how I can now fix this and what in Solar2D is causing the problem:

"Your app uses unsupported APIs or parameters for edge-to-edge display

At least one of the APIs or parameters you used, for which you have specified the use of edge-to-edge and window display, has been discontinued in Android 15. Your app uses the following unsupported APIs or parameters:

  • android.view.Window.setNavigationBarColor

They are used at the following locations:

  • com.ansca.corona.Controller$$ExternalSyntheticApiModelOutline0.m

Migrate away from these APIs or parameters in preparation for the switch to Android 15."

Any help welcome

1 Like

Did you build with the latest Corona Sim?

No. I did some research and are now right in the process to test if the latest build is fixing this maybe.
Thank you for your fast feedback. Can anybody confirm if this issue is getting fixed with a new build?

I’m seeing that warning too across all my apps in Play Console. Most of them are updated to Solar2D 2025.3722, and from what I can tell from the 3723 / 3724 release notes, it doesn’t look like they fix that warning.

Thank you for this details! Much appreciated! Hope this issue will get fixed soon.

See this pull request, we aren’t specific in a lot of our releases

There have been fixes to other warning in each build including in 3723

If you are still getting warnings pass 3723, I appreciate the specific warning thanks :slight_smile:

Well, in the ā€œWhat’s Changedā€ for version 2025.3722, item #826 states that issues 794 and 822 were fixed. In issue 794 (Android 15 warnings displayed in the Google Play Console Ā· Issue #794 Ā· coronalabs/corona Ā· GitHub), the warnings Edge-to-edge may not display for all users and Your app uses deprecated APIs or parameters for edge-to-edge are mentioned, but both warnings are still showing up in the update of all my apps with 2025.3722.

Hey @Scott_Harrison, I just updated one of my apps to the latest Solar2D build (2025.3724) and I’m still getting the warnings:

Edge-to-edge may not display for all users

From Android 15, apps targeting SDK 35 will display edge-to-edge by default. Apps targeting SDK 35 should handle insets to make sure that their app displays correctly on Android 15 and later. Investigate this issue and allow time to test edge-to-edge and make the required updates. Alternatively, call enableEdgeToEdge() for Kotlin or EdgeToEdge.enable() for Java for backward compatibility.

…

Your app uses deprecated APIs or parameters for edge-to-edge

One or more of the APIs you use or parameters that you set for edge-to-edge and window display have been deprecated in Android 15. Your app uses the following deprecated APIs or parameters:

  • android.view.Window.setNavigationBarColor

These start in the following places:

  • com.ansca.corona.CoronaActivity$5.run

To fix this, migrate away from these APIs or parameters.

…

Remove resizability and orientation restrictions in your game to support large screen devices

Your game doesn’t support all display configurations, and uses resizability and orientation restrictions that may lead to layout issues for your users.

We detected the following resizability and orientation restrictions in your game:

  • com.ansca.corona.purchasing.StoreActivity.onCreate

To improve the user experience of your game, remove these restrictions and check that your game layouts work on various screen sizes and orientations.