Skip to main content
Inspiring
December 23, 2011
Question

Kindle Fire: inconsistent stageWidth/stageHeight (urgent)

  • December 23, 2011
  • 2 replies
  • 1810 views

hi all, this is a major issue for me and will be for others wanting to be Kindle Fire approved by amazon: when you first launch your app on the kindle fire, you get the approriate stage width and height. depending on your device orientation, it will be 1024x600 - 20 pixels from the bottom fo the screen (so you will have either 1024x580 or 1004x600).

again, on first launch of the app this is fine, but for some reason on subsequnet launches of the app you get 1024x600 (or 600x1024). the 20-pixel amazon kindle fire toolbar is still at the bottom, so your app will be oscured if you assume those extra 20 pixels are available. currently rhere is no way of determining that this is happening (aside from saving state after the very first run and remembering that you are on a kindle fire on subsequent launches).

this needs to be fixed as amazon is declining approval for the kindle because of this issue.

This topic has been closed for replies.

2 replies

Inspiring
January 7, 2012

One very ugly work-around until this issue gets fixed: 

The very first time you run your app on the kindle after installing it, you get the correct stageWidth and stageHeight. If I notice that I'm on a kindle (580 pixels tall or 1004 pixels tall) I save a flag in a local shared object that I am on a kindle and use that flag on later launches to modify the ui accordingly.

Hopefully this gets fixed soon. 

January 10, 2012

Michelangelo I found this solution for my problem.

http://forums.adobe.com/thread/943963?tstart=0

Seems to work very well although occasionally the device will confuse itself but for my app its not a major breaking point. Also fixes this issue on my HTC phone.

Inspiring
January 10, 2012

thanks for the heads up Mark. i'll look into this solution as well. seems we have a few wrok-arounds but nothing bulletproff just yet

January 5, 2012

I second this motion.