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

Android: Handle Android hardware back button on lightweight windows

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 1.7.2
    • Fix Version/s: Release 2.0.2, Release 2.1.0
    • 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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                framirez Francisco Antonio Duran Ramirez
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code