{ "id": "62581", "key": "TIMOB-1949", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:37.000+0000", "created": "2011-04-15T03:06:19.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "defect", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-04-17T01:57:37.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

Even if a person has an image (photo), if that person is\nretrieved via the showContacts API (the contacts\npicker), its image property will return null, as\nopposed to a person retrieved via getAllPeople, for\nexample. This occurs only on phones supporting the new contacts\napi, so phones with 2.0 or higher.

\n

Failcase app.js

\n
\nTitanium.UI.setBackgroundColor('#000');\nvar w = Titanium.UI.createWindow({  \n    title:'Test',\n    backgroundColor:'#fff'\n});\n\nvar btn = Ti.UI.createButton({\n    title: 'Show Contacts Picker'\n});\n\nbtn.addEventListener('click', function(){\n    Ti.Contacts.showContacts( {\n        selectedPerson: function(e) {\n            var img = e.person.image;\n            if (img === null) {\n                alert('Image is null');\n            } else {\n                alert('Image is not null');\n            }\n        }\n    })\n});\nw.add(btn);\nw.open();\n
\n

If you run that failcase and select a contact with a photo, it\nwill still say \"Image is null\". Expected: \"Image is not null.\"

{html}", "attachment": [], "flagged": false, "summary": "Android: Person returned by showContacts always has null image (Android 2.0 and higher)", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "127062", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [fc78d2977d6595b8d54dadac3a8b1024a3af43d9])\n[#1949 state:fixed-in-qa] Correctly indicate if a\nperson has a photo when that person is loaded directly from a\ncursor based on the people projection \nhttp://github.com/appcelerator/titanium_mobile/commit/fc78d2977d659...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:06:20.000+0000", "updated": "2011-04-15T03:06:20.000+0000" }, { "id": "127063", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [901074850fdc4e2ee26a378936074271ce5c4970])\n[#1949 state:fixed-in-qa] Correctly indicate if a\nperson has a photo when that person is loaded directly from a\ncursor based on the people projection \nhttp://github.com/appcelerator/titanium_mobile/commit/901074850fdc4...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:06:20.000+0000", "updated": "2011-04-15T03:06:20.000+0000" }, { "id": "127064", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

1.4.2.5935b3 G1 and 2.2sim

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:06:20.000+0000", "updated": "2011-04-15T03:06:20.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }