I'm new to Android and connected few dots for my problem but stuck with one point.
Goal: Like WhatsApp icon displayed in contact that are registered user of WhatsApp. I want to do the same for my app's registered user.
What I did so far: I created sync adapter to run contact sync in background.
Now I want to do something like this.
cursor start [read android contact]
// api calls
if(user-registered-with-app){
// attach my app's userId with android contact and save the contact
}
cursor end
Is it the correct way to link my app's user to android contacts?
I've read following questions but I didn't understand it properly.
Link Android application with contacts/phonebook programatically