Titanium Mobile
  1. Titanium Mobile
  2. TIMOB-5119

Android: Handle Android hardware back button on lightweight windows

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Fixed
    • Affects Version/s: Release 1.7.2
    • Fix Version/s: Release 2.1.0, Release 2.0.2
    • Component/s: Android
    • Labels:
    • Environment:

      Device and simulator

      Description

      Feature request

      Problem

      Handle Android hardware back button on lightweight windows it does not work.

      Reproducible steps:

      1.Run the code below.

      Expected behavior

      Customer wants to handle Android hardware back button on lightweight windows.

      Sample Code:

      // create base UI tab and root window
      //
      var win1 = Titanium.UI.createWindow({  
          title:'Tab 1',
          backgroundColor:'#fff'
      });
      
      var label1 = Titanium.UI.createLabel({
       color:'#999',
       text:'I am Window 1',
       font:{fontSize:20,fontFamily:'Helvetica Neue'},
       textAlign:'center',
       width:'auto'
      });
      
      win1.add(label1);
      
      
      win1.addEventListener('android:back', function(e) {
          alert('You pressed the back button')
      });
      win1.open();
      

      Associated HD Ticket.

      APP-579337

        Issue Links

          Activity

          Hide
          Junaid Younus added a comment -

          Issue is fixed with 2.0.2GA. Tested on a Samsung Galaxy S2. Ticket closed.

          Show
          Junaid Younus added a comment - Issue is fixed with 2.0.2GA. Tested on a Samsung Galaxy S2. Ticket closed.
          Hide
          Rima Umbrasas added a comment -

          Verified fixed with
          mobile sdk-2.2.0.v20120810080115
          Titanium Studio, build: 2.1.1.201207271312
          Device:
          Galaxy S III Android version 4.0.4

          Show
          Rima Umbrasas added a comment - Verified fixed with mobile sdk-2.2.0.v20120810080115 Titanium Studio, build: 2.1.1.201207271312 Device: Galaxy S III Android version 4.0.4

            People

            • Assignee:
              Vishal Duggal
              Reporter:
              Francisco Antonio Duran Ramirez
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development