Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19782

Android: eventListeners don't fire on android 6.0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Invalid
    • Affects Version/s: Release 5.1.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      Description

      Steps To Reproduce:

      1. Use the following code in the app.js:

      var win = Ti.UI.createWindow({ 
          title: "Test" 
      }); 
      var button = Titanium.UI.createButton({ 
         title: 'Hello', 
         top: 10 
      }); 
      button.addEventListener('click',function(e) 
      { 
         Titanium.API.info("You clicked the button"); 
      }); 
       
      win.addEventListener('click',function(){
      	Ti.API.info("You clicked the window");
      });
       
      win.addEventListener('focus',function(){
      	Ti.API.info("Window was focussed");
      });
       
      win.add(button); 
        
      win.open(); 
      

      2. Build the app for android 6.0 device/emulator.

      Actual Results:

      1. None of the eventlisteners are fired.
      2. The listeners are fired on android 5.1.1.

      Expected Results:

      1. The eventlisteners should fire on android 6.0

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cng Chee Kiat Ng (Inactive)
                Reporter:
                lchoudhary Lokesh Choudhary
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-20539
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration