Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11802] Android: "android:back" event does not work

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2012-11-28T05:58:09.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.1.0, 2012 Sprint 24
ComponentsAndroid
Labelsqe-and100112, regression
ReporterTamila Smolich
AssigneeIngo Muschenetz
Created2012-11-16T17:56:30.000+0000
Updated2013-03-04T11:15:43.000+0000

Description

Description: "android:back" event does not work on Android, so clicking hardware "back" button does not bring an alert with message "Back button". This is a regression, does not occur on 2.1.4. Steps: 1. Run the following code:
var win = Ti.UI.createWindow();
win.open();

win.addEventListener('android:back', function(){
	alert('Back button');
});
win.addEventListener('android:search', function(){
	alert('Search');
});
win.addEventListener('android:camera', function(){
	alert('Camera');
});
2. Press hardware "back" button Expected result: Should get an alert with message "Back button" Actual result: No alert

Comments

  1. Ping Wang 2012-11-21

    This regression is cause by [PR#3237](https://github.com/appcelerator/titanium_mobile/pull/3237)
  2. Shyam Bhadauria 2013-03-04

    Its a duplicate and fixed bug so closing it. Environment used for verification - Titanium SDK: 3.1.0.v20130228214607 Titanium  Studio:3.0.2.201302141201 Device : Samung GALAXY Tab 620 Android 3.2

JSON Source