Skip to content

AdjoeActivity.onCreate calls setRequestedOrientation() — triggers Google Play Console large screen warning #8

Open

Description

@brunohmagro

Summary

We received a Google Play Console warning about screen size restrictions in our app. The warning explicitly points to io.adjoe.sdk.internal.AdjoeActivity.onCreate as the source of the restriction.

Play Console warning (translated from Portuguese):

Remove resizing and orientation restrictions from your app to ensure compatibility with large-screen devices. Starting from Android 16, the system will ignore resizing and orientation restrictions for large-screen devices such as foldables and tablets. This may cause layout and usability issues for users.

We detected the following resizing and orientation restrictions in your app:
io.adjoe.sdk.internal.AdjoeActivity.onCreate

Technical evidence

Inspecting AdjoeActivity.class via javap -c confirms setRequestedOrientation() is called twice in onCreate():

287: invokevirtual #1240   // Method android/app/Activity.setRequestedOrientation:(I)V
300: invokevirtual #1240   // Method android/app/Activity.setRequestedOrientation:(I)V

Affected versions

Verified across all currently available stable and pre-release versions on the Maven repository:

Version setRequestedOrientation in AdjoeActivity.onCreate
4.5.2 ✅ present (offsets 287, 300)
4.5.3 ✅ present (offsets 287, 300)
5.0.0-beta.3 ✅ present (offsets 304, 317)

Expected behavior

AdjoeActivity should not call setRequestedOrientation() unconditionally, or should at minimum handle large-screen configurations gracefully so that the activity functions correctly in both portrait and landscape on tablets and foldables running Android 16+.

Impact

  • Google Play Console flags the app with a large screen compatibility warning.
  • On Android 16+, the system ignores these calls on large-screen devices, meaning AdjoeActivity will be shown in whatever orientation the device is in — which may break the SDK's UI if it was not designed for landscape / large-screen layouts.

Request

Please either:

  1. Remove the setRequestedOrientation() calls and adapt the AdjoeActivity UI to support multiple orientations/screen sizes, or
  2. Provide guidance on which version addresses this and when it will be available on the Maven repository at https://releases.adjoe.io/maven.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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