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

Android: Accessing properties from contacts crashes the app

    Details

      Description

      The application crashes when accessing the properties from contacts. The test case is provided below and crash logs are attached.

      Steps to Repo

      1. Run the below code in the app.js of your project.
      2. The application crashes while trying to access the device contacts.

      var win1 = Titanium.UI.createWindow({
      		title : 'Tab 1',
      		backgroundColor : '#fff'
      	});
       
      var people = Ti.Contacts.getAllPeople();
      Ti.API.info('Total contacts: ' + people.length);
      Ti.API.info('All contacts: ' + JSON.stringify(people));
       
      win1.open(); 
      

      Additional details

      tc2 attachment reproduces the issue as well. Target environment has been already in summary.

        Attachments

        1. tc1_log
          38 kB
          Nikhil Sharma
        2. tc2
          44 kB
          Eduardo Gomez

          Activity

            People

            • Assignee:
              pwang Ping Wang
              Reporter:
              nsharma Nikhil Sharma
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration