Skip to main content
Known Participant
January 31, 2014
Question

Wrong DPI on iPad

  • January 31, 2014
  • 2 replies
  • 2300 views

Hi,

I have recently updated to AIR 4.0 from AIR 3.6, but now the DPI is wrong on iPad (3, with retina display). I have tried with and without <requestedDisplayResolution>high</requestedDisplayResolution>, but it's with the same result: all buttons, lists etc. are too small. Does anyone know of a solution?

Thanks.

Mark

This topic has been closed for replies.

2 replies

Participant
April 16, 2014

I'm having a similar issue where an iPad Mini w/ Retina display appears to be a low res deivce:

  • Apache SDK 4.12
  • FlashBuilder 4.7
  • .ipa compiled on both Mac and PC
  • tried pointing to an iOS 5.1 SDK during compile on both Mac and PC

app descriptor:

<iPhone>

        <InfoAdditions><![CDATA[

             <key>UIDeviceFamily</key>

             <array>

                    <string>1</string>

                    <string>2</string>

               </array>

               ]]>

        </InfoAdditions>

        <requestedDisplayResolution>high</requestedDisplayResolution>

</iPhone>

Test app reports -

Capabilities.screenResolutionX: 768

Capabilities.screenResolutionY: 1024

Capabilities.screenDPI: 132

stage.fullScreenWidth: 1024

stage.fullScreenHeight: 768

I'm expecting higher resolution and DPI. Any ideas why?

Test code is here:

https://www.dropbox.com/s/u072ou6enxa54k9/src.zip

Please let me know what else I can provide in order to help troubleshoot.

MarkJAuthor
Known Participant
April 16, 2014

I'm not sure this will help, but maybe it can help someone else then :). I solved my problem by adding CSS stuff and icons for the new dpi that were added in the new sdk.

Participant
April 16, 2014

The problem is that the iPad Mini w/ Retina is incorrectly reporting a low DPI of 132 so low res icons and fonts sizes are being used in the app.

MarkJAuthor
Known Participant
February 3, 2014

I have found out why my icons were gone. The value of Capabilities.screenDPI seems to be different now, so I just had to create new assets for that DPI. But all my buttons etc. are still pretty small and difficult to hit when using fingers.

Adobe Employee
February 4, 2014

Hi,

I tried Capabiliites.screenDPI with iPad 3 with build(4.0.0.139) available at http://www.adobe.com/devnet/air/air-sdk-download.html and the values(264 and 132) are correct for both requestedDisplayResolution as high and standard respectively. Could you please share the AIR SDK version you are using.

Regards,

Nimit

MarkJAuthor
Known Participant
February 4, 2014

Hi,

Thanks for your reply.

My sdk version is

<name>AIR 4.0.0</name>

<version>4.0.0</version>

<build>1619</build>

I will get back to you when I have a sample application with the problem. The problem also arises in the simulator btw, and now that I test it in the iPhone simulator, I can see there is a minor difference as well. If I set my applicationDPI to 160 in MXML, the iPhone version seems to be correct, but on iPad everything is still too small. When I took over the responsibility of the app (which was AIR 3.5, not 3.6 like I stated previously), applicationDPI was not specified. This seemed to work, but when I updated to 4.0, it didn't work anymore. I have tried different values, but none of them seem to change much in the iPad case.