[TIMOB-11802] Android: "android:back" event does not work
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Duplicate |
| Resolution Date | 2012-11-28T05:58:09.000+0000 |
| Affected Version/s | Release 3.0.0 |
| Fix Version/s | Release 3.1.0, 2012 Sprint 24 |
| Components | Android |
| Labels | qe-and100112, regression |
| Reporter | Tamila Smolich |
| Assignee | Ingo Muschenetz |
| Created | 2012-11-16T17:56:30.000+0000 |
| Updated | 2013-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
This regression is cause by [PR#3237](https://github.com/appcelerator/titanium_mobile/pull/3237)
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