The following code works, but I would like to find out if it's possible to address the people objects directly rather than indirectly like in this code. For example, why can't I address the direct object using group[i].members[1].fullName ?
var people = Ti.Contacts.getAllPeople(); var groups = Titanium.Contacts.getAllGroups(); Ti.API.info('Group length is ' + groups.length); for (i = 0; i < groups.length; i++) { Ti.API.info( 'groupname:'+ groups[i].name); Ti.API.info( 'members:'+ groups[i].members()); Ti.API.info('Lenght of '+i+' is '+ groups[i].members().length); var tpeople = groups[i].members(); var text = 'People: '; if (tpeople != null) { for (var i=0; i < tpeople.length; i++) { Ti.API.info( tpeople[i].fullName +', '); } } }