You can start a new operation to add a new contact when the user clicks the add new contact button. To do this, you will need to create your own activity and setContentView(R.layout.YOUR_CUSTOM_ACTIVITY_SCREEN) . Now the next step is important. Add the following lines to the ManifestFile of your application:
<activity android:name=".YOUR_CUSTOM_ACTIVITY" > <intent-filter> <action android:name="android.intent.action.INSERT" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="vnd.android.cursor.dir/contact"/> </intent-filter> </activity>
Now, when the user clicks to add a new contact, he will be shown 2 options. One of them will be your application, and the other will be the default activity for adding a contact.
Hope this answer helps.
source share