Android Question Deprecated edge to edge api

janderkan

Well-Known Member
Licensed User
Longtime User
I get this warning from Google Play when I upload a new version of my app.

" Your app uses deprecated edge-to-edge display APIs or parameters "

How can I solve this?
 

LucaMs

Expert
Licensed User
Longtime User
I don't know how to fix this; Erel will most likely have to step in.

I just want to report here what Perplexity replied, hoping it can be useful:


"Your app uses deprecated edge-to-edge display APIs or parameters," indicates that the application is using APIs or parameters for edge-to-edge display that have been deprecated starting from Android 15 (API level 35). This has significant technical implications.

Technical Meaning of Deprecated API​

1. Edge-to-Edge Display:
  • The edge-to-edge design means that the app's content extends to the edges of the screen, eliminating black bars or empty spaces. This approach aims to create a more immersive and modern visual experience, especially on devices with large or curved screens.
2. Deprecated APIs:
  • Deprecated APIs, such as android.view.Window.setDecorFitsSystemWindows and android.view.Window.setNavigationBarColor, are no longer recommended for use and may be removed in future versions of the operating system. Using these APIs can lead to unexpected behaviors or compatibility issues with newer versions of Android.
3. Implications for Development:
  • Developers need to update their code to use new APIs that support edge-to-edge behavior, such as applying insets to ensure that content is not hidden behind navigation or status bars. Failing to migrate to these new APIs could result in a compromised user interface and a poor user experience.
4. Opt-Out Option:
  • Google has introduced a temporary opt-out feature allowing developers to avoid immediate compliance with edge-to-edge requirements, but this is only a short-term solution. Developers should plan to adapt their apps to conform to future standards, as this option will be removed eventually.
In summary, the message received implies that the app needs to be updated to remove the use of deprecated APIs and adopt new recommended practices to ensure compatibility and enhance user experience on Android 15 and later versions.
 
Upvote 0

Markos

Active Member
Licensed User
Longtime User
Agreed it is too many potential scenarios to isolate the issue to then try to comply. I have two apps that use all the same API's and Libraries and one gets the warning and the other doesn't so It is also possible it is a false positive detection by Google. If not then it may be in my case a visual object obscuring/overlapping another object that Google looks for visual object clashes either in your screen layout static template or when you dynamically place visual objects. Oh well I'm sure Erel will get to the root cause and solution so we can remedy this anomally.
 
Upvote 0

Markos

Active Member
Licensed User
Longtime User
Your insight suggests we need to offset from the top to avoid conflict or blocking of our content by the system bar? I'm using Android sdk34 to get that warning from googleplay. But your point is noteworthy for future development when using sdk35 and up
 
Upvote 0

Pendrush

Well-Known Member
Licensed User
Longtime User
Since you are now targeting API 34, there is no reason for concern. Only with target API 35 does the edge-to-edge API come into effect. What you see on Google Play is just a warning for libraries that need to be upgraded for upcoming changes.
 
Upvote 0

Markos

Active Member
Licensed User
Longtime User
Since you are now targeting API 34, there is no reason for concern. Only with target API 35 does the edge-to-edge API come into effect. What you see on Google Play is just a warning for libraries that need to be upgraded for upcoming changes.
Thats great to hear. But pray tell any hints what libraroes we should look out to upgrade to comply. Would be splendid!
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…