xinwei 0 Newbie Poster

I have doubts on android sdk-15 sample ContactManager.

1) ContactManager.java => getContacts()

Is there any way i query out contacts only located in sim card or phone book ?

2) ContactAdder.java => onAccountsUpdated(Account[] a)

When i'm in debug mode on my device, I check the account array, a. As I only have whatsapp on my device, there's 2 account gmail and whatsapp available. Is sim card or phone book an account ? Is there any way I could insert directly into sim card or phonebook ?

3) No delete or update has been introduced in this demo

I know that I can use Intent.ACTION_INSERT_OR_EDIT, but I don't wish to do that. I would like to follow the demo and create custom user interface for it. Is there tutorial that introduces delete or update contact for me to follow ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.