AIR 23 Android screen size measurement error
Compile our Android App with AIR22 and . . .
This code:
public function getDeviceRectangle():Rectangle{
var dr:Rectangle = new Rectangle(0, 0,
Math.max(this.width, this.height),
Math.min(this.width, this.height));
return dr;
}
Gives us 0 0 1024 552 for a Kindle fire which has a 1024 x 600 screen and Status Bar which cannot be removed
This works for us as we then scale the app to fit the available space.
Compile on AIR 23 and the same code returns 0 0 1024 600 which is the full screen ( including the android status bar )
Since many apps will use this code as starting point for scaling up their app to fit the many android resolutions it's important to know whether we're scaling to the available screen ( less the Android UI )
Note - I've also tried <fullscreen>true<fullscreen> which throws a compile error.
