{ "id": "62610", "key": "TIMOB-1978", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-21T16:38:06.000+0000", "created": "2011-04-15T03:07:04.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "alert", "android", "defect", "module_media", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "20088", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-06-20T08:59:14.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}
1.code below (via Bill D)
\r\n2.(repro'd on a G1 running 1.4.25935b3) launch app
\r\n3.tap button to invoke picker and select an item in contacts that\r\nhas an image
\r\nresults:alert appears
\r\n4.repeat but select a contact without an image
\r\nresults: no alert appears (adb logcat shows the expected value)
Titanium.UI.setBackgroundColor('#000');
\r\nvar w = Titanium.UI.createWindow({
\r\ntitle:'Test',\r\nbackgroundColor:'#fff'
\r\n
\r\n});
\r\nvar btn = Ti.UI.createButton({
\r\ntitle: 'Show Contacts Picker'
\r\n
\r\n});
\r\nbtn.addEventListener('click', function(){
\r\nTi.Contacts.showContacts( {\r\n selectedPerson: function(e) {\r\n var img = e.person.image;\r\n if (img === null) {\r\n alert('Image is null');\r\n } else {\r\n alert('Image is not null');\r\n }\r\n }\r\n})
\r\n
\r\n}); w.add(btn);
\r\nw.open();