WhatsApp recently added the call feature. Before this, there was only one option when viewing a contact, that was to message the contact. Now there is the option to message or call a contact. Did WhatsApp add this entry to the ContactsContract, or did Google modify the contacts app to cater for WhatsApp? I am trying to make a custom contacts app, but I don't understand how to create links to apps from within this custom contacts app.
I have read this question,
How to get contacts which are used in whatsapp or other application in android
But the solution isn't generic enough. I want to make a contacts app that doesn't have the names of applications hard coded in.
Every app can only specify what type of
uri scheme
they can handle likesms://
ortel://
. For clearification, Apps cann't add entry of itself in some other apps.In your Example case:
The Contact app itself implemented in such a way that it list all apps which can handle
sms://
ortel://
type ofuri scheme
. As the older version of WhatsApp can only handlesms://
uri scheme that's why Contact app only list SMS/message option.Also with calling feature in WhatsApp they added support for handling
tel://
uri scheme that's why Contact app also shows the calling option.