Adobe-Runtime-Support icon indicating copy to clipboard operation
Adobe-Runtime-Support copied to clipboard

Problem with device resolution in AIRSDK 33.1.1.889

Open bbsdevelopement opened this issue 3 years ago • 1 comments

In SDK 33.1.1.889, screenResolutionY provides an incorrect value.

This causes the view to be shifted and stretched. In older SDKs, a black border was displayed at the top and bottom.

AIRSDK 33_1_1_821_default_adt

AIRSDK_33_1_1_889_gradle

bbsdevelopement avatar Jun 27 '22 12:06 bbsdevelopement

This is likely caused by the automatic inclusion of a high aspect ratio setting for Android, which we added recently. So the bottom image is actually getting closer to the full size of the display which was the intention...

If you don't want the new behaviour, you can explicitly set the app back to the previous max aspect ratio of 1.86 (16:9) using the application descriptor file, e.g.

<android>
  <manifestAdditions><![CDATA[
    <manifest android:installLocation="auto">
      <!-- other tags here -->
      <application android:hardwareAccelerated="true">
        <meta-data android:name="android.max_aspect" android:value="1.86" />
      </application>
    </manifest>
  ]]></manifestAdditions>
</android>

See https://developer.android.com/guide/practices/screens-distribution#maxAspectRatio and the above sample adapted from https://community.adobe.com/t5/animate-discussions/full-screen-in-as3-air/td-p/5191156

ajwfrost avatar Jun 28 '22 05:06 ajwfrost