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

Android: app crashes accessig to AddressBook on Android OS 4

    Details

      Description

      Problem description

      App crashes when accessing to contacts in Address Book on Android OS 4.0

      Steps to reproduce

      • Run the sample code below
      • Click the button and get to the Address Book contact list.
      • Click on a contact, then get back to the app
        Result: app crashes.

      Crash not reproducible on Android OS 2.3.3
      Attaching crash log.

      Titanium.UI.setBackgroundColor('#000');
      var win1 = Titanium.UI.createWindow({ 
          title:'Tab 1',
          backgroundColor:'#fff'
      });
      var info = Titanium.UI.createLabel({
          color:'#999',
          text:'I am Window 1',
          font:{fontSize:20,fontFamily:'Helvetica Neue'},
          textAlign:'center',
          width:'auto'
      });
      // Create a Button.
      var btn1 = Ti.UI.createButton({
          title : 'btn1',
          height : 50,
          width : 300,
          bottom : 50
      });
      var values = {
          cancel:function() {info.text = 'Cancelled';},
          selectedPerson : function() {info.text = "select";}};
      // Listen for click events.
      btn1.addEventListener('click', function() {
          Titanium.Contacts.showContacts(values);
      });
      // Add to the parent view.
      win1.add(btn1);
      win1.add(info);
      win1.open();
      

      Additional notes

      Customer ticket: http://support-admin.appcelerator.com/display/APP-461234

        Attachments

          Activity

            People

            • Assignee:
              hpham Hieu Pham
              Reporter:
              fcasali Federico Casali
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-13291
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration