Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12777] Android: Ti.Contacts.getAllPeople() does not work if contacts have no group

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-03-22T22:47:38.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.1.0, 2013 Sprint 06 API, 2013 Sprint 06
ComponentsAndroid
Labelsmodule_media, qe-closed-3.1.0, qe-testadded
ReporterDavide Cassenti
AssigneePing Wang
Created2013-02-18T15:10:29.000+0000
Updated2013-10-07T09:35:16.000+0000

Description

Problem description

When a contact has no group associated, the Ti.Contacts.getAllPeople() method won't find it. This is the default on Samsung Galaxy S3.

Steps to reproduce

Using a Samsung Galaxy S3, with contacts not associated to a group, just using the getAllPeople() method won't work.

Comments

  1. Ping Wang 2013-03-21

    Test case:
       var people = Ti.Contacts.getAllPeople();
       alert("people.length = " + people.length);
       
       for(var i=0; i<people.length; i++) {
       	Ti.API.info("************* id: " + people[i].id);
       }
       
    For FR, run the above code on Samsung Galaxy S3 with and without the fix to see the different results. **Note:** Before the fix, if the contact is a Google contact and has no Group associated, getAllPeople() can not find it.
  2. Ping Wang 2013-03-21

    PR: https://github.com/appcelerator/titanium_mobile/pull/4001
  3. Dhirendra Jha 2013-04-11

    Verified With - SDK - 3.1.0.v20130409124549 Appcelerator Studio - 3.1.0.201304091724 OS - Montain Lion (v10.8) Device - Samsung Galaxy S3 (v4.0.4) Verified this issue. Now its working as expected. Hence closing this issue.

JSON Source