[TIMOB-9427] Android: Delete Contacts Implementation + Removing contact support for 1.6
| GitHub Issue | n/a |
|---|---|
| Type | Sub-task |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-06-11T15:48:09.000+0000 |
| Affected Version/s | Release 2.0.1 |
| Fix Version/s | Release 2.1.0, Sprint 2012-12 API |
| Components | Android |
| Labels | api, parity |
| Reporter | Hieu Pham |
| Assignee | Hieu Pham |
| Created | 2012-06-06T15:28:56.000+0000 |
| Updated | 2017-03-06T22:08:46.000+0000 |
Description
Feature that allows user to delete contacts from Contacts Book, as well as removing support for Contacts API 4.
Test Case:
1. Create a contact using this code
var person1 = Ti.Contacts.createPerson({
firstName: 'Tom',
lastName: 'Cruise',
birthday: '2012-01-01T12:00:00.000+0000',
organization: 'Appcelerator',
});
2. Delete that contact using this
var tom = Ti.Contacts.getPeopleWithName("Tom Cruise");
Ti.Contacts.removePerson(tom[0]);
Closing ticket due to time passed.