About orientation event

@Joshua,

  1. we used a daily build #944

  2. rotationfix.lua is a code shared in the corona site by Pixel EnVision. It does immediate rotation without that big black animation rectangle.
    http://developer.coronalabs.com/code/proper-orientation-rotation-animation

  3. I don’t have a kindle fire HD to test on. That is the only device they say it fails on.

My other 2 apps use exactly the same code for build.settings and rotationfix.lua, were built with same corona version and passed testing on all kindles. It doesn’t make sense that this one doesn’t.
What to do?
Do you want to run the apk on your kindle fire HD? [import]uid: 32063 topic_id: 30243 reply_id: 131190[/import]

Hmm… I think the “rotationfix.lua” only makes sense if your app has a “fixed” orientation. That is, if your app only supports “landscapeRight” orientation, because you will still get rotation events even for a fixed orientation app but the OS won’t automatically rotate the app for you. That “rotationfix.lua” handles the rotation of objects for you. Just be warned that it can’t rotate native objects on Android such as TextFields, TextObjects, WebViews, etc. But that said, I doubt the “rotationfix.lua” is the cause of this issue.

Also, did you make sure to test your app supports “landscapeRight” and “landscapeLeft” on your own Android devices? You should see Android automatically flip your app when rotating your device. The behavior will be exactly the same on Kindle Fire HD because it doesn’t do anything special. If your app is not flipping, then that would suggest that something went wrong with your APK’s AndroidManifest.xml file, which is typically the case when modifies it with “apktool” since that tool has been known to drop needed settings from the file.

If you want us to test and isolate this issue for you on a Kindle Fire HD, then that would mean paying for premium support. Unless of course you can prove it’s a bug on our part. But that said, it would be cheaper for you to buy a Kindle Fire HD (only $200) and test it for yourself, which might be worth it in the long run.
[import]uid: 32256 topic_id: 30243 reply_id: 131282[/import]

@Joshua,

  1. App passed their test for kindle fire, so no issue with the orientation on kindle fire, only on HD as they said.
  2. we don’t use apktool or anything like that. I renamed the apk that comes out of corona to the name required by amazon, and upload to their site. Do they use it?
  3. if the manifest is corrupt wouldn’t it fail on kindle fire too?
  4. what about this default orientation of kindle fire HD being 270 and the others being 90, is that an issue?
    Well nothing really makes sense because others apps using the same code passed all testing and this
    app passed testing on the 2 other kindle fire type tablets.
    ??? [import]uid: 32063 topic_id: 30243 reply_id: 131294[/import]

@Joshua,
about rotationfix.lua…
when I started using it last year, it was because it was the only way of managing the orientation change in iOS without having that big black rectangle animation around it. we wanted immediate switch of orientation. there was some discussion about it and Pixel EnVision had come up with that solution. And it worked just as we wanted. [import]uid: 32063 topic_id: 30243 reply_id: 131300[/import]

Hmm… I think the “rotationfix.lua” only makes sense if your app has a “fixed” orientation. That is, if your app only supports “landscapeRight” orientation, because you will still get rotation events even for a fixed orientation app but the OS won’t automatically rotate the app for you. That “rotationfix.lua” handles the rotation of objects for you. Just be warned that it can’t rotate native objects on Android such as TextFields, TextObjects, WebViews, etc. But that said, I doubt the “rotationfix.lua” is the cause of this issue.

Also, did you make sure to test your app supports “landscapeRight” and “landscapeLeft” on your own Android devices? You should see Android automatically flip your app when rotating your device. The behavior will be exactly the same on Kindle Fire HD because it doesn’t do anything special. If your app is not flipping, then that would suggest that something went wrong with your APK’s AndroidManifest.xml file, which is typically the case when modifies it with “apktool” since that tool has been known to drop needed settings from the file.

If you want us to test and isolate this issue for you on a Kindle Fire HD, then that would mean paying for premium support. Unless of course you can prove it’s a bug on our part. But that said, it would be cheaper for you to buy a Kindle Fire HD (only $200) and test it for yourself, which might be worth it in the long run.
[import]uid: 32256 topic_id: 30243 reply_id: 131282[/import]

@Joshua,

  1. App passed their test for kindle fire, so no issue with the orientation on kindle fire, only on HD as they said.
  2. we don’t use apktool or anything like that. I renamed the apk that comes out of corona to the name required by amazon, and upload to their site. Do they use it?
  3. if the manifest is corrupt wouldn’t it fail on kindle fire too?
  4. what about this default orientation of kindle fire HD being 270 and the others being 90, is that an issue?
    Well nothing really makes sense because others apps using the same code passed all testing and this
    app passed testing on the 2 other kindle fire type tablets.
    ??? [import]uid: 32063 topic_id: 30243 reply_id: 131294[/import]

@Joshua,
about rotationfix.lua…
when I started using it last year, it was because it was the only way of managing the orientation change in iOS without having that big black rectangle animation around it. we wanted immediate switch of orientation. there was some discussion about it and Pixel EnVision had come up with that solution. And it worked just as we wanted. [import]uid: 32063 topic_id: 30243 reply_id: 131300[/import]

>> 4) what about this default orientation of kindle fire HD being 270 and the others being 90, is that an issue?

No, because Corona handles it correctly. We have a Motorola Xoom that has that same default landscape orientation that we’ve tested on. We used to have that problem Amazon was mentioning, but it was fixed over a year ago.

>> 3) if the manifest is corrupt wouldn’t it fail on kindle fire too?

I don’t think it is corrupted. I just know that apktool strips out settings that it does not recognize. It will still generate a valid AndroidManifest.xml file, but it may strip out settings needed to make an app support both “landscapeRight” and “landscapeLeft”. If you’re not modifying the APK after it has been built, then this can’t be the issue.
[import]uid: 32256 topic_id: 30243 reply_id: 131634[/import]

>> 4) what about this default orientation of kindle fire HD being 270 and the others being 90, is that an issue?

No, because Corona handles it correctly. We have a Motorola Xoom that has that same default landscape orientation that we’ve tested on. We used to have that problem Amazon was mentioning, but it was fixed over a year ago.

>> 3) if the manifest is corrupt wouldn’t it fail on kindle fire too?

I don’t think it is corrupted. I just know that apktool strips out settings that it does not recognize. It will still generate a valid AndroidManifest.xml file, but it may strip out settings needed to make an app support both “landscapeRight” and “landscapeLeft”. If you’re not modifying the APK after it has been built, then this can’t be the issue.
[import]uid: 32256 topic_id: 30243 reply_id: 131634[/import]