Android: How to interact with the default Contacts application
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.
However, I have no idea how to even interact with th开发者_如何学运维e 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?
try this.
<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>
when you press call button of device then user see two choice ..
1) in-built contacts.
2)your app
精彩评论