问题
As in WhatsApp
, if you click on a name to call, down the list you will find the WhatsApp
logo in front of the number if you want to txt using WhatsApp
.
Can we add the easyPhoneCard
in that list, so the user can directly call using that option without clicking on the prompt to call.
回答1:
You have to add in your manifest some rules.
In that way, Android will be able to list your application as compatible with a specific action (here is call action)
I think it will be something like
<intent-filter>
<action android:name="android.intent.action.CALL" />
<category android:name="android.intent.category.DEFAULT" />
<action android:name="android.intent.action.CALL_PRIVILEGED" />
<data android:scheme="tel" />
</intent-filter>
(add this in your activity node that will handle operations)
来源:https://stackoverflow.com/questions/19808133/show-my-app-icon-infront-off-contact