问题描述
我是新的,试图使一个code,当用户选择一个联系人,点击呼叫按钮,用户与拥有两个选项的弹出式对话框psented $ P $;具体而言,一种是使用标准的拨号器拨打,另一种是只为用户的其他选择。
I am new and trying to make a code that when a user selects a contact and hits the call button, the user is presented with a pop-up dialog that has two choices; In detail, one is to call using the standard dialer and another one is just another selection for the user.
不过,我不知道如何甚至默认的联系人应用程序进行交互。我听说'sipdroid也有类似的应用程序,但仍然没有任何想法。
However, I have no idea how to even interact with the default contacts application. I heard that 'sipdroid' has a similar application but still don't have any idea.
如果有人知道如何做到这一点,或有这一个很好的教程,请你帮我吗?
If anybody knows how to do it or has a good tutorial for this, would you please help me?
推荐答案
试试这个。
<activity android:label="@string/app_name" android:name=".YourActivity"
android:screenOrientation="portrait" android:clearTaskOnLaunch="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER"></category>
<category android:name="android.intent.category.DEFAULT"></category>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.CALL_BUTTON"></action>
<category android:name="android.intent.category.DEFAULT"></category>
</intent-filter>
</activity>
在设备的preSS呼叫按钮,然后用户看到两个选择。
when you press call button of device then user see two choice ..
1) in-built contacts.
2)your app
这篇关于安卓:如何使用默认的联系人应用程序进行交互的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!