Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5764] Android: Ti.Gesture orientationchange event keeps on firing

GitHub Issuen/a
ResolutionNeeds more info
Resolution Date2018-06-12T10:09:20.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, orientationChange
ReporterMichiel van Eerd
AssigneeShak Hossain


When executing the following code, the onOrientationChange function keeps on executing infinitely.
    <Label>Hello, World</Label>

Ti.Gesture.addEventListener("orientationchange", onOrientationChange);

function onOrientationChange(e) {
Response is something like:
[INFO]  6
[INFO]  4
[INFO]  1
[INFO]  3
[INFO]  1
[INFO]  6
[INFO]  1
[INFO]  3
[INFO]  1
[INFO]  3


  1. Sharif AbuDarda 2018-06-08

    Hello, I have tested your issue on Android 8 device. I wasn't able to reproduce the issue. The onOrientationChange function only fires on when the device orientation is changed, not continuously. Thanks.
  2. Michiel van Eerd 2018-06-08

    Thanks, I can also see that it's working okay on my device, but on the Android emulator it's firing very fast infinitely.
  3. Sharif AbuDarda 2018-06-09

    Hello, I also tested on emulator and find it's also ok in there. Can you share a video demonstration of the issue? Thanks.
  4. Mostafizur Rahman 2018-06-12

    Hello, Can you please share a video to demonstrate of the issue? It would be helpful for better investigation. Thanks

JSON Source