Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19782] Android: eventListeners don't fire on android 6.0

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionInvalid
Resolution Date2015-10-29T00:42:31.000+0000
Affected Version/sRelease 5.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsqe-5.1.0
ReporterLokesh Choudhary
AssigneeChee Kiat Ng
Created2015-10-23T21:34:55.000+0000
Updated2015-10-29T00:42:46.000+0000

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

Comments

  1. Lokesh Choudhary 2015-10-29

JSON Source