Kindle Fire HD auto orientation is upside down


hi,

 

has else had problem of kindle fire hd orientation being upside down when auto orientation turned on landscape? there anyway fix it?

yes. also, original kindle fire had same issue, different reason. there various works arounds issue, of have serious possible side effects. here’s description of general problem:

 

if user holds kindle fire correct way (either usb connector right if there no camera, or camera @ top or left if there camera), works ok.

 

if user holding other way (by way, i’m describing landscape here), on original kindle fire may work, on new ones upside down.

 

if fix that, app correct, if user turns device @ all, app becomes upside down, , remains way until force quit.

 

so, after lot of attempted fixes way found make predictable turn off auto rotation , work around initial incorrectness.

 

now, because original kindle fire has opposite issue later ones, have work around issues in opposite way. means finding way detect old kindle fire versus newer one. 1 way check screen size.

 

no other android device has these issues, have tell whether should attempting work around @ all. use variable tells me app bought n amazon appstore that. if was, kindle fire work arounds. if wasn’t, don’t.

 

the final work around code (the timer used because @ first orientation may return "unknown"):

 

private var screenwidth: int = math.max(capabilities.screenresolutionx, capabilities.screenresolutiony);

private var screenheight: int = math.min(capabilities.screenresolutionx, capabilities.screenresolutiony);

private var store:string = "amazon";//amazon or empty;

private var fixtimer:timer = new timer(10,200);

 

if(store=="amazon"){

          fixtimer.addeventlistener(timerevent.timer,fixrot);

          fixtimer.start();

}

 

private function fixrot(e: timerevent) {

    if (stage.deviceorientation != "unknown") {

      fixtimer.stop();

      fixtimer.removeeventlistener(timerevent.timer, fixrot);

    } else {

      return;

    }

    var oldkindle: boolean = false;

    if (screenwidth == 1024 && screenheight == 600) oldkindle = true;

    if (!oldkindle) {

      if (stage.deviceorientation == "rotatedleft") {

        stage.setorientation("rotatedleft");

      }

    } else {

      if (stage.deviceorientation == "rotatedright") {

        stage.setorientation("rotatedleft");

      } else {

        if (stage.deviceorientation == "rotatedleft") {

          stage.setorientation("rotatedright");

        }

      }

    }

}



More discussions in AIR Development


adobe

Comments

Popular posts from this blog

Thread: "Broken" background image with Super Key

Thread: unable to set up wifi

Thread: lower arc in openoffice draw