Skip to content

⚠️ Android 16 Early Compatibility Warning for Codename One #4466

@DurankGts

Description

@DurankGts

Hello Codename One Team,

We would like to raise an early warning regarding possible compatibility and runtime issues when running Codename One applications on Android 16 (API level 36).

Android 16 introduces stricter enforcement of non-SDK (hidden) API restrictions, mandatory edge-to-edge UI behavior, and new rules around window resizing and orientation handling, especially on large screens and foldable devices.

Since Codename One relies on native Android code for window management, system UI handling, keyboard behavior, immersive mode, and other low-level integrations, there is a risk that:

Some internal Android APIs currently used by the CN1 runtime or plugins may now be blocked or restricted.

Certain features may fail at runtime due to NoSuchMethodError, IllegalAccessError, or hidden API access violations.

UI layouts may be affected by mandatory edge-to-edge behavior and enforced resizability on tablets and foldables.

Status bar and navigation bar insets may no longer be handled correctly if relying on deprecated behaviors.

We recommend early validation of the Codename One Android port against Android 16, including:

Running the current CN1 runtime on Android 16 devices and emulators.

Reviewing logcat output for hidden API access warnings or runtime crashes.

Auditing native Android code and plugins for usage of non-SDK interfaces.

Testing layout behavior under enforced edge-to-edge and window resizing scenarios.

We are opening this ticket proactively to help identify and address any Android 16–related regressions as early as possible, before Play Store targetSdkVersion requirements make API 36 mandatory.

Thank you for your continued support.

sources

https://developer.android.com/about/versions/16/changes/non-sdk-16
https://developer.android.com/about/versions/16/behavior-changes-16

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions