Project: titanium
Issue TIMOB-17890: Android: Creating & saving contact does not add the contact to the phone's contact list
h6. This regression is seen from 3.4.0.GA and above. It works as expected in 3.3.0.GA. h5.Description: 1. Create a default classic app & replace the app/js with the following code: {code} var photo = Ti.UI.createImageView({ image: 'KS_nav_views.png' }).toBlob(); var person = Ti.Contacts.createPerson({ firstName: 'Aaron', lastName: 'Smith', date: { anniversary: ['2002-11-11T11:23:30.000+0000'], other: ['2011-04-02T12:00:00.000+0000'] } }); person.organization = "google"; person.phone = { mobile: ['9999999991', '1234556677'], work: ['9999998888', '1234567789'] }; person.address = { work:[ { Street: '900 West Drive', City: 'New York', County: 'Berkshire', Country: 'U.S.A', ZIP: '99999' }, { Street: '456 New Ave.', City: 'San Jose', State: 'California', Country: 'U.S.A', ZIP: '94082' } ], home:[ { Street: '2 East Drive', City: 'Las Vegas', State: 'Nevada', Country: 'U.S.A', ZIP: '55555' } ]}; person.instantMessage = { home:[ { service: 'AIM', username: 'Dominator' }, { service: 'MSN', username: 'dominator@msn.com' } ], work:[ { service: 'Facebook', username: 'Dominator2' } ] }; person.url = { homepage: ['www.myspace.com'], work: ['www.apple.com', 'www.yahoo.com'] }; person.email = { home: ['hieu@google.com'], work: ['pham@google.com', 'hp007@appcelerator.com'] }; person.relatedNames = { parent: ['daddy', 'mommy'], assistant: ['mayhem'] }; person.date = { anniversary: ['2022-11-11T11:23:30.000+0000'], other: ['2003-04-02T12:00:00.000+0000'] }; person.firstName = "Ade"; person.lastName = "Crude"; person.birthday = "1999-01-01T12:00:00.000+0000"; person.organization = "GOOGLE"; person.note = "NOTE: MASS EFFECT"; person.nickname = "NICKNAME: THOR"; person.image = photo; Ti.Contacts.save([person]); {code} 2. Build & run the app on android device. 3. Open contacts on the device & check if you have a new contact Ade Crude" added. h5.Actual Result: 1.A new contact "Ade Crude" is not added to the contacts list on the device. h5.Expected Result: 1.A new contact "Ade Crude" is added to the contact list on the device
Story points: 5