Detecting Ipad mini versus Ipad
Dear developers, via as3 code I am trying to tell the difference between ipad mini and ipad. I would like to make the buttons a bit larger on the mini, as when it is shrunk down they are just a bit too small on the mini.
So I am using this code
var resX:int = Capabilities.screenResolutionX;
var resY:int = Capabilities.screenResolutionY;
var tabdpi:int=Capabilities.screenDPI;
and publishing ad hoc directly to the ipad mini. I am using flash pro cs6.
resX and resY are correct, but screenDPI returns 132 instead of 163 (from within the app on the mini). I was reading on another website that there is no way to tell the two devices apart, and that this is the way apple wants it. Has anyone found a solution to this problem?
I could make the buttons larger for the Ipad and then they would be an adequate size for the mini, but this solution seems inelegant.
Thank you,
Justin
